Constructors
constructor
Parameters
Optional detached: boolean
Properties
active
active: boolean
cleanups
cleanups: (() => void)[]
effects
Private index
index: any
parent
scopes
Methods
off
Returns void
on
Returns void
run
- run<T>(fn: () => T): undefined | T
Type parameters
Parameters
Returns undefined | T
stop
- stop(fromParent?: boolean): void
Parameters
Optional fromParent: boolean
Returns void
track a child scope's index in its parent's scopes array for optimized removal