how does useSelector cache without re-running the selector ? #1892
-
Hi 👋 From the doc, I have tried supplying Here is the codesandbox Did I misunderstand something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It'll also re-run if the state changed as well: react-redux/src/hooks/useSelector.js Lines 31 to 48 in 9306158 |
Beta Was this translation helpful? Give feedback.
It'll also re-run if the state changed as well:
react-redux/src/hooks/useSelector.js
Lines 31 to 48 in 9306158