Answer the question
In order to leave comments, you need to log in
React Redux useEffect?
In useEffect , I call the function, on request to the server:
useEffect(() => {
dispatch(getMovies());
dispatch(getTrending());
}, [dispatch]);
const {nowPlaying, trendingLoad, trending, nowLoading} = useSelector(state => state.movie);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question