Skip to main content

$onUpdate

function

Add a function to run after the current update. This will run after any `onUpdate` function already supplied to `editor.update()`, as well as any functions added with previous calls to `$onUpdate`.

function $onUpdate(updateFn: () => void): void

Import

import { $onUpdate } from '@modular/sdk/editor';