Skip to content

BlockSuite API Documentation / @blocksuite/affine-block-root / onModelElementUpdated

Function: onModelElementUpdated()

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

Defined in: packages/affine/blocks/block-root/src/utils/callback.ts:9

Parameters

editorHost

EditorHost

model

BlockModel

callback

(block) => void

Returns

Promise<void>