refactor(web): move current atoms into plugin infra (#3220)
This commit is contained in:
1 parent
0230cea16e
commit
64cf297399
13 files changed
+91
-98
No files matched your search
@@ -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