Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate move to useSyncExternalStore #148

Closed
albertogasparin opened this issue Nov 16, 2021 · 0 comments · Fixed by #162
Closed

Evaluate move to useSyncExternalStore #148

albertogasparin opened this issue Nov 16, 2021 · 0 comments · Fixed by #162

Comments

@albertogasparin
Copy link
Collaborator

With React 18 there is a new useSyncExternalStore hook (and a shim for >= 16.8) to properly subscribe to values in stores.

reactwg/react-18#86

Other projects like react-redux are moving to it (PR reduxjs/react-redux#1808 ) so might provide some benefits / need for custom subscription/memoization/scheduling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant