Skip to main content

$flushSyncAfterUpdate

function

Equivalent to setting `{discrete: true}` on the containing `editor.update`, generally used to ensure that the DOM is updated before returning from an event listener where the browser is expected to natively finish handling the event.

function $flushSyncAfterUpdate(): void

Import

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