fix: cleanup data when logout (#1443)
This commit is contained in:
1 parent
a7a8ac0882
commit
ce8539b414
3 files changed
+17
-3
No files matched your search
@@ -59,6 +59,9 @@ const getPersistenceAllWorkspace = () => {
|
||||
export const AffinePlugin: WorkspacePlugin<RemWorkspaceFlavour.AFFINE> = {
|
||||
flavour: RemWorkspaceFlavour.AFFINE,
|
||||
loadPriority: LoadPriority.HIGH,
|
||||
cleanup: () => {
|
||||
storage.removeItem(kAffineLocal);
|
||||
},
|
||||
CRUD: {
|
||||
create: async blockSuiteWorkspace => {
|
||||
const binary = BlockSuiteWorkspace.Y.encodeStateAsUpdate(
|
||||
|
||||
Reference in new issue
Block a user