Function: createEffect()
createEffect(
fn):EffectHandle
Defined in: src/core/signals.ts:313
Create an effect. It runs once immediately, tracks the signals it reads, and re-runs whenever one of those tracked signals changes.
Parameters
fn
() => void
The side effect to run.
Returns
A handle whose dispose stops further runs.