-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[v4-alpha] use mutable source #422
Conversation
* feat: new implementation with useMutableSource * fix: support slice to be null * [v3-alpha] clean up types * shave two bytes * revert type hack for immer * update size snapshot * [v3-alpha] unified api * shave a byte * v4-alpha * update size snapshot * revert skipped test * fix test for uMS * fix typo
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 60616c7:
|
I apologize if my question is not related to this PR, but I am interested to know if zustand ever plans to support level 3 for concurrent rendering (reactwg/react-18#70)? |
level 3 would probably require multi-version snapshots, and it's probably impossible to extend zustand/valtio api for it. My hope is jotai api might do, but maybe not because jotai api still allows impure operations on write. Overall, the answer is, we are interested, but we don't know. |
Closing. We'll continue the effort in #550. |
originally from #157