vue-lynx / onMounted

Function: onMounted()

function onMounted(hook, target?): void

Registers a callback to be called after the component is mounted.

In Vue Lynx, the callback only runs on the background thread — during an IFR main-thread first-screen render, registration is a no-op.

Parameters

ParameterType
hookany
target?null | ComponentInternalInstance

Returns

void

See

Vue docs

Defined in

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