Hi I am trying to learn React and made a small app using useState and custom hooks.
Now I am trying to integrate it with Redux and Redux toolkit but am having trouble.
I originally used useEffect that was dependent on a state change so when the state is populated with some fetched API data, the useEffect would happen.
Now I am using a Redux store instead of normal React state and tried to use a useSelector of the data that would store the API data, but it doesn’t seem to be working when I try to use that as a dependency.
Anyone set me on the right path on how I should go about this?
submitted by /u/Icy_Ganache_144
[link] [comments]