Comments (1)
I found the solution.
I needed to add the getOnInit option.
Without this option, the whole atomWithStorage for ReactNative doesn't work as expected.
I would suggest adding this small thing to the documentation.
Or, even better, make this option default to "true" since only by enabling it this atomWithStorage works as expected.
from jotai.
Related Issues (20)
- How do I use jotai in ordinary js files?not function component.
- [React Native] Atom updates that occur within setTimeout/setInterval trigger a re-render for every useAtom instance HOT 1
- mount is executed twice HOT 2
- Bad lingature for coding font on doc page
- Atoms remount on recalculations HOT 1
- (Testing) HydrateAtoms component resets atoms when using multiple initial values
- RFC: Add `atomWithRefresh` in `jotai/utils` HOT 4
- react re-render fire just init time HOT 1
- Confusing example in documentation HOT 1
- Jotai suspends unnecessarily when a fullfilled promise is used by a derived atom
- webpack support
- Fix Support Page HOT 4
- Nextjs 14 app router webpack error
- Idea: lazy initialization for primitive atoms HOT 17
- Investigate and fix possible memory leaks in `store2` HOT 6
- Store type is not exported for createStore() HOT 2
- Migrate to pnpm HOT 1
- Children components don't see update of one atom in parent one HOT 1
- Possible regression of 2.6.4 with derived atoms HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jotai.