mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
refactor: remove sync storage (#2269)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { atomWithSyncStorage } from '@affine/jotai';
|
||||
import type { AccessTokenMessage } from '@affine/workspace/affine/login';
|
||||
import { atomWithStorage } from 'jotai/utils';
|
||||
|
||||
export const currentAffineUserAtom =
|
||||
atomWithSyncStorage<AccessTokenMessage | null>('affine-user-atom', null);
|
||||
export const currentAffineUserAtom = atomWithStorage<AccessTokenMessage | null>(
|
||||
'affine-user-atom',
|
||||
null
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user