Ability to turn off tab synchronization #2580
Unanswered
shishkin17
asked this question in
Ideas
Replies: 1 comment 3 replies
-
With v2.8.2, we can customize import { createJSONStorage, atomWithStorage } from 'jotai/utils';
const myStorage = createJSONStorage(() => ({ ...localStorage, subscribe: () => () => {} }));
const myAtom = atomWithStorage('foo', 'foo', myStorage); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
It turns out that if I don't what tab synchronization, I need to create the whole storage object (without subscription) even though I am ok with the built in implementation.
It would be great to have an option just not to subscribe.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions