fix: cleanup data when logout (#1443)

This commit is contained in:
Himself65
2023-03-09 00:38:16 -06:00
committed by GitHub
parent a7a8ac0882
commit ce8539b414
3 changed files with 17 additions and 3 deletions

View File

@@ -48,6 +48,8 @@ export interface WorkspacePlugin<Flavour extends RemWorkspaceFlavour> {
flavour: Flavour;
// Plugin will be loaded according to the priority
loadPriority: LoadPriority;
// fixme: this is a hack
cleanup?: () => void;
// Fetch necessary data for the first render
CRUD: {
create: (blockSuiteWorkspace: BlockSuiteWorkspace) => Promise<string>;