vue-lynx / onScopeDispose

Function: onScopeDispose()

function onScopeDispose(fn, failSilently?): void

Registers a dispose callback on the current active effect scope. The callback will be invoked when the associated effect scope is stopped.

Parameters

ParameterTypeDescription
fn() => voidThe callback function to attach to the scope's cleanup.
failSilently?boolean-

Returns

void

See

https://vuejs.org/api/reactivity-advanced.html#onscopedispose

Defined in

node_modules/.pnpm/@vue+reactivity@3.5.30/node_modules/@vue/reactivity/dist/reactivity.d.ts:699