mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
refactor(editor): remove deprecated dangerouslyRenderModel method (#9803)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user