feat(editor): life cycle ext (#10668)

This commit is contained in:
Saul-Mirone
2025-03-06 12:28:55 +00:00
parent b85812d8dd
commit 2e86bfffae
9 changed files with 79 additions and 18 deletions
@@ -4,7 +4,6 @@ import {
handleError,
} from '@blocksuite/global/exceptions';
import { SignalWatcher, WithDisposable } from '@blocksuite/global/lit';
import { Slot } from '@blocksuite/global/slot';
import {
type BlockModel,
Store,
@@ -90,10 +89,6 @@ export class EditorHost extends SignalWatcher(
)}`;
};
readonly slots = {
unmounted: new Slot(),
};
get command(): CommandManager {
return this.std.command;
}
@@ -131,8 +126,6 @@ export class EditorHost extends SignalWatcher(
override disconnectedCallback() {
super.disconnectedCallback();
this.std.unmount();
this.slots.unmounted.emit();
this.slots.unmounted.dispose();
}
override async getUpdateComplete(): Promise<boolean> {