class EffectScope

Properties

active

Signature
active: boolean;
typescript

cleanups

Signature
cleanups: (() => void)[];
typescript

effects

Signature
effects: ReactiveEffect[];
typescript

parent

Signature
parent: EffectScope | undefined;
typescript

scopes

Signature
scopes: EffectScope[] | undefined;
typescript

Constructors

(constructor)(detached)

Constructs a new instance of the EffectScope class

Parameters
Name Type Description

detached

boolean

Signature
constructor(detached?: boolean);
typescript

Methods

off()

Signature
off(): void;
typescript

on()

Signature
on(): void;
typescript

run(fn)

Parameters
Name Type Description

fn

() => T

Returns

T | undefined

Signature
run<T>(fn: () => T): T | undefined;
typescript

stop(fromParent)

Parameters
Name Type Description

fromParent

boolean

Returns

void

Signature
stop(fromParent?: boolean): void;
typescript