Replies: 3 comments 4 replies
-
That's weird, but I'm pretty sure the default store is used somewhere by accident. Are you with the latest version of Jotai? |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm facing the same issue as you. Any updates? My code's nearly identical, plus Next.js. Ignore it? |
Beta Was this translation helpful? Give feedback.
-
I am also facing the same problem, but I ignored it. I just use useAtom and atom() on my website. I see the same warning, and I don't use other Jotai features because I just wanted something simple for passing data without prop drilling. My current Jotai version is jotai: ^2.8.4. I don't use the default store( I don't even know what it is ). why am I facing this problem? |
Beta Was this translation helpful? Give feedback.
-
hello
Currently, I am trying to set theme values for dark mode in jotai and manage them globally.
However, even though it keeps holding only one themeAtom value,
"Detected multiple Jotai instances. It may cause unexpected behavior with the default store"
This error appears.
The default store was not used.
What's the problem?
- themeAtom.ts
- useTheme.ts
I thought I should wrap it in a Provider, so I created it as a Provider and wrapped it, but this error still appears.
Now I'm using Next.js 14. thanks
Beta Was this translation helpful? Give feedback.
All reactions