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.

The

PROBLEMis 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