Skip to content

Bug? Using provider with atom that derive from atomsWithStorage trigger twice in jotai v2 #1743

Answered by devnomic
devnomic asked this question in General
Discussion options

You must be logged in to vote

I see,
But why it only happens when i wrap it with provider tag?
So what should i do if i want the same behavior like v1?

My case i have a component that has a props that will initialize the atom. basically it's #826 so i need provider to wrap the component.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@devnomic
Comment options

Answer selected by devnomic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants