0

When the route change from a component I want to change the redux store value. I am using the reach router. I want to perform something like this:

   React.useEffect(() => {
    // want to change redux store value here
  }, [if route changes then the use-effect will trigger]);

0 Answers0