Reactjs – Strange problems with useEffect and useSelector cause infinite loops
Now I do not understand why the data value obtained by useSelector is monitored by useEffect and useState is used to render the page in a closed loop. Here's my code: const data = useSelector((state: DeviceList) => { if (state.basicSetting…