Replies: 1 comment 1 reply
-
Because we need to avoid tearing in any concurrent rendering situation. You might want to read these prior resources: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As I know for redux situation, normal setState is enough. For React 18 concurrent rendering will only be triggered by a few APIs like
So in connect of react-redux, we will not use these kind of APIs, and just
setState
, which will fire sync updates. So why we need to useuseSyncExternalStore
?Beta Was this translation helpful? Give feedback.
All reactions