vue-lynx / nextTick

Function: nextTick()

function nextTick(fn?): Promise<void>

Wait for the next DOM update flush and the main-thread ops acknowledgement.

Unlike standard Vue's nextTick which only waits for the scheduler flush, Vue Lynx's version also waits for the main thread to apply the ops, so native Lynx elements are fully materialised when the callback fires.

Parameters

ParameterTypeDescription
fn?() => voidOptional callback to execute after flush

Returns

Promise<void>

A promise that resolves when the main thread has applied all pending ops

See

Vue nextTick — Vue Lynx extends the standard behavior.

Defined in

packages/vue-lynx/runtime/src/index.ts:151