atomWithAsyncStorage #3059
Unanswered
michaelwoelk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I needed to use
atomWithStorage
, but ran into issues where all components using the atom either re-rendered, triggered fetches twice, or stayed stuck on the initial value. This happened becauseatomWithStorage
isn't async by default.So I created this:
Does Jotai offer an official solution for this directly?
Beta Was this translation helpful? Give feedback.
All reactions