onSettled

abstract var onSettled: (settled: Settled) -> Function<*>(source)

The settled 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

settled

The {@link Settled | settled callback} to call when a promise is created.