Registers an "effect" that will be scheduled & executed whenever the signals that it reads changes.
API
Description
function effect( effectFn: (onCleanup: EffectCleanupRegisterFn) => void, options?: CreateEffectOptions | undefined): EffectRef;
Jump to details