Answer the question
In order to leave comments, you need to log in
How to prevent component from re-rendering when redux store changes?
Hello, I've come across something I don't understand.
There is a container component that uses 1 part of the store and changes the other part:
const date = useSelector(state => state.dashboard.date);
useEffect(() => {
dispatch(getAllHouses());
}, [dispatch, date]);
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