fix(infra): memory leak (#9013)
This commit is contained in:
@@ -159,4 +159,8 @@ export class WorkspacePermission extends Entity {
|
||||
permission
|
||||
);
|
||||
}
|
||||
|
||||
override dispose(): void {
|
||||
this.revalidate.unsubscribe();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,10 @@ export class WorkspacePermissionService extends Service {
|
||||
super();
|
||||
}
|
||||
|
||||
override dispose(): void {
|
||||
this.permission?.dispose();
|
||||
}
|
||||
|
||||
async leaveWorkspace() {
|
||||
await this.store.leaveWorkspace(this.workspaceService.workspace.id);
|
||||
this.workspacesService.list.revalidate();
|
||||
|
||||
Reference in New Issue
Block a user