vue-lynx / nextTick
Function: nextTick()
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.
Caveat: some Lynx builds never invoke the callLepusMethod callback that
carries the acknowledgement. Until the engine has delivered one real
acknowledgement, each flush falls back to a short timer so nextTick()
cannot hang forever — on such engines the materialisation guarantee is
best-effort (a dev-mode warning is logged when the fallback fires). Once a
real acknowledgement has been observed, the strict guarantee applies.
Parameters
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:250