-
-
Notifications
You must be signed in to change notification settings - Fork 616
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
feat: add back dev4_restore_atoms to store v2 #2509
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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. |
Size Change: +347 B (+0.38%) Total Size: 91.4 kB
ℹ️ View Unchanged
|
Preview in LiveCodesLatest commit: b95fd04
See documentations for usage instructions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A side note: I wonder what would be the difference between "restore" and multiple "set"s.
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
Yes, there's a difference. store.set can't update atom with customized write (like write-only atom and atomWithReducer). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks great! Thanks for investigating it. Nice work.
Summary
dev4_restore_atoms
method to store v2