-
|
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Feb 16, 2025
Replies: 1 comment 1 reply
-
Because the first one creates "a new object" in every render. If you use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
xeureka
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because the first one creates "a new object" in every render. If you use
useShallow
, it's fine too.