Type alias: EffectFn

index.EffectFn

EffectFn: () => void | () => void

Type declaration

(): void | () => void

Callback function executed within a reactive effect context.

Returns

void | () => void

Remarks

Any reactive signal or proxy property accessed during the execution of this callback will be dynamically tracked as a dependency. The callback can optionally return a cleanup function that runs before the next re-execution or when the effect is disposed.

ON THIS PAGE