mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
refactor: remove sync storage (#2269)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { atomWithSyncStorage } from '@affine/jotai';
|
||||
import type { EditorContainer } from '@blocksuite/editor';
|
||||
import { atom, createStore } from 'jotai';
|
||||
import { atomWithStorage, createJSONStorage } from 'jotai/utils';
|
||||
@@ -19,7 +18,7 @@ export type RootWorkspaceMetadata = {
|
||||
* this atom stores the metadata of all workspaces,
|
||||
* which is `id` and `flavor`, that is enough to load the real workspace data
|
||||
*/
|
||||
export const rootWorkspacesMetadataAtom = atomWithSyncStorage<
|
||||
export const rootWorkspacesMetadataAtom = atomWithStorage<
|
||||
RootWorkspaceMetadata[]
|
||||
>(
|
||||
// don't change this key,
|
||||
|
||||
Reference in New Issue
Block a user