We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a1a8f1 commit ec7b510Copy full SHA for ec7b510
src/vanilla/store.ts
@@ -766,8 +766,9 @@ let defaultStore: Store | undefined
766
if (import.meta.env?.MODE !== 'production') {
767
if (typeof (globalThis as any).__NUMBER_OF_JOTAI_INSTANCES__ === 'number') {
768
++(globalThis as any).__NUMBER_OF_JOTAI_INSTANCES__
769
+ } else {
770
+ ;(globalThis as any).__NUMBER_OF_JOTAI_INSTANCES__ = 1
771
}
- ;(globalThis as any).__NUMBER_OF_JOTAI_INSTANCES__ = 1
772
773
774
export const getDefaultStore = () => {
0 commit comments