Skip to content

BlockSuite API Documentation / @blocksuite/blocks / onModelElementUpdated

Function: onModelElementUpdated()

onModelElementUpdated(editorHost, model, callback): Promise<void>

Parameters

editorHost: EditorHost

model: BlockModel<object, SignaledProps<object>>

callback

Returns

Promise<void>

Defined in

packages/blocks/src/root-block/utils/callback.ts:35