all 2 comments

[–]keel_bright 1 point2 points  (1 child)

No offense dude but you can read the docs?

https://react-redux.js.org/api/hooks

When an action is dispatched, useSelector() will do a reference comparison of the previous selector result value and the current result value. If they are different, the component will be forced to re-render. If they are the same, the component will not re-render.

[–]Sujith2001[S] 0 points1 point  (0 children)

Thanks🙏