vue-lynx / effectScope

Function: effectScope()

function effectScope(detached?): EffectScope

Creates an effect scope object which can capture the reactive effects (i.e. computed and watchers) created within it so that these effects can be disposed together. For detailed use cases of this API, please consult its corresponding RFC.

Parameters

ParameterTypeDescription
detached?booleanCan be used to create a "detached" effect scope.

Returns

EffectScope

See

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

Defined in

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