-
I store the count of N counters in Zustand (3.5.10). Clicking on a counter increments it's count but forces a re-render of all the items in the list. Why? I made sure to memoize the selector and use shallow equality comparison. Please help! https://codesandbox.io/s/hopeful-herschel-sk8uk?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Sep 5, 2021
Replies: 1 comment 3 replies
-
Here you go: https://codesandbox.io/s/naughty-rumple-sxey9 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Wahib
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here you go: https://codesandbox.io/s/naughty-rumple-sxey9