Class EffectScope

Constructors

Properties

Accessors

Methods

Constructors

Properties

cleanups: (() => void)[] = []

Type declaration

    • (): void
    • Returns void

detached: boolean = false
effects: ReactiveEffect<any>[] = []
parent: EffectScope

only assigned by undetached scope

scopes: EffectScope[]

record undetached scopes

Accessors

  • get active(): boolean
  • Returns boolean

Methods

  • Internal

    This should only be called on non-detached scopes

    Returns void

  • Internal

    This should only be called on non-detached scopes

    Returns void

  • Type Parameters

    • T

    Parameters

    • fn: (() => T)
        • (): T
        • Returns T

    Returns T

  • Parameters

    • Optional fromParent: boolean

    Returns void