Home>
I'm using redux useSelector in my App component with routes
const { something, something2 }= useSelector((state)=> ({
something: state.something,
something2: state.something2
}))
I also have a lot of dispatch logic in my application when updating the page.
ThePROBLEMis that my App component gets updated 10 times. How can I optimize and fix this?
I really need this data from state redux in App component
Related questions
- javascript : Is it possible to use the same state for different elements of an array?
- javascript : React + Redux why element is not updated when store is updated
- javascript : Why do we need redux middleware?
- reactjs : What does line 15 mean?
- javascript : How to sort an array by date so that the oldest ones come first
- javascript : Date display bug in React
- javascript : React. Unloading ads for 10 pieces
- javascript : How to restart an existing React app?
- javascript : The simplest code on React.js does not work