onInit

abstract var onInit: (init: Init) -> Function<*>(source)

The init hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.

Since

v17.1.0, v16.14.0

Return

Call to stop the hook.

Parameters

init

The {@link Init | init callback} to call when a promise is created.