-
-
Notifications
You must be signed in to change notification settings - Fork 649
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
atomWithStorage trouble with AsyncStorage #780
Comments
Thanks for reporting. Can you try two things? a) Instead of b) Enable export const errorStorageAtom = atomWithStorage('errorStorage', {}, { ...createJSONStorage(() => AsyncStorage), delayInit: true }) |
Hi thanks for reply. Delay init fixed my problem. |
That's good to hear. |
Hi. I am trying to store error data with atomWithStorage in React Native.
This is my atom
and on error I am trying to save it
but I get this error in console and wait forever
on ticket send I am resetting it
jotai: 1.4.0
react-native: 0.64.2
The text was updated successfully, but these errors were encountered: