mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 18:02:47 +08:00
refactor(web): move current atoms into plugin infra (#3220)
This commit is contained in:
@@ -12,6 +12,8 @@ export const rootStore = createStore();
|
||||
|
||||
// todo: for now every plugin is enabled by default
|
||||
export const affinePluginsAtom = atom<Record<string, AffinePlugin<string>>>({});
|
||||
export const currentPageIdAtom = atom<string | null>(null);
|
||||
export const currentWorkspaceIdAtom = atom<string | null>(null);
|
||||
|
||||
export function definePlugin<ID extends string>(
|
||||
definition: Definition<ID>,
|
||||
|
||||
Reference in New Issue
Block a user