Module

x/vue3_reactivity/mod.ts>EffectScope

vue3_reactivity is forck by @vue/reactivity for deno.
Latest
class EffectScope
import { EffectScope } from "https://dotland.deno.dev/x/vue3_reactivity@v1.0.0/mod.ts";

Constructors

new
EffectScope(detached?)

Properties

private
index: number | undefined

track a child scope's index in its parent's scopes array for optimized removal

active: boolean
cleanups: (() => void)[]
effects: ReactiveEffect[]
parent: EffectScope | undefined

only assigned by undetached scope

scopes: EffectScope[] | undefined

record undetached scopes

Methods

off()

This should only be called on non-detached scopes

on()

This should only be called on non-detached scopes

run<T>(fn: () => T): T | undefined
stop(fromParent?: boolean)