Skip to content

atomWithStorage does not persist the initial value #2121

Answered by dai-shi
pabo asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for asking. Well, we are not very comfortable with complicating atomWithStorage (it feels to me it's already too complicated and I'd even suggest trying a simpler alternative, https://fosstodon.org/@daishi/110993179854190377 ), so if it's solvable outside, it should be done so.

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@dai-shi
Comment options

Answer selected by pabo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@pabo
Comment options

@dai-shi
Comment options

Comment options

You must be logged in to vote
4 replies
@dai-shi
Comment options

@Annie-Huang
Comment options

@dai-shi
Comment options

@Annie-Huang
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants