-
-
Notifications
You must be signed in to change notification settings - Fork 642
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
fix(utils/atomWithDefault): support refresh #537
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/pmndrs/jotai/GmDD8vP5v6e4Rk463xZbqxctvkhX |
@fkocovski Would you try this? (you can npm/yarn install the codesandbox build.) |
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 da1199a:
|
@dai-shi I tested this with different scenarios here. Tested the following:
It seems to work perfectly fine for me in all these scenario |
Great to hear! and the csb example looks good too. |
Hey @dai-shi, I just need to familiarise myself with the testing setup here. I'll look around and give it a try. Is there a discord or slack channel (or equivalent) I can join if I get stuck where I can ask for help? (I can just write here otherwise) |
Yes, please find an invitation link in readme. |
Amazing thank you! I'll let you know how it goes, I think I have an idea based on the existing atomWithDefault tests I've seen. |
* support refresh in atomWithDefault * test: tests for atomWithDefault refresh feature * chore: update size-snapshot.json Co-authored-by: daishi <daishi@axlight.com>
About the above failing test, I wasn't sure it was an environment issue (my local machine), but the |
Yeah, I've seen this a few times. @Thisen can you investigate it? (but the reproduction is gone...) |
Thanks to @LucaColonnello , this is ready for review and merge. Anyone, feel free to leave some comments. |
Should be fixed now. |
close #521