Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

refactor(editor): remove deprecated dangerouslyRenderModel method (#9803)

Saul-Mirone092f9c84fa0a
diff --git a/blocksuite/framework/block-std/src/view/element/lit-host.ts b/blocksuite/framework/block-std/src/view/element/lit-host.ts
index bd90704f9e..4e5e4f46ab 100644
--- a/blocksuite/framework/block-std/src/view/element/lit-host.ts
+++ b/blocksuite/framework/block-std/src/view/element/lit-host.ts
@@ -79,17 +79,6 @@ export class EditorHost extends SignalWatcher(
></${tag}>`;
};
- /**
- * @deprecated
- * Render a block model manually instead of let blocksuite render it.
- * If you render the same block model multiple times,
- * the event flow and data binding will be broken.
- * Only use this method as a last resort.
- */
- dangerouslyRenderModel = (model: BlockModel): TemplateResult => {
- return this._renderModel(model);
- };
-
renderChildren = (
model: BlockModel,
filter?: (model: BlockModel) => boolean