-
|
I'm in a Microfrontend environment where any of the remote apps may or may not be using jotai (it's not a shared dependency, the environment is too dynamic, so everyone that uses jotai likely has their own jotai instance). The apps are using jotai in providerless mode (eg no wrapper), this seems to be the most straightforward choice as each instance will create its own default store. Is there a way to surpress this warning, maybe tell jotai that we're in such environment and this is all fine? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Lines 23 to 36 in f287c5d How about adding |
Beta Was this translation helpful? Give feedback.
jotai/src/vanilla/store.ts
Lines 23 to 36 in f287c5d
How about adding
globalThis.__JOTAI_DEFAULT_STORE__ = nullin your code?