Skip to content

What is scenario to set getOnInit option in atomWithStorage? #2896

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

You must be logged in to vote

In short, Next.js users should use false, RN users would use true. We default to false because many people reported as bugs previously. false is required if you use SSR. If true works for your case, feel free to use it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xc1427
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants