Command Palette
Search for a command to run
Command Palette
Search for a command to run

$effect

✓ Relevant

$effect runs side-effect functions when tracked state changes; variants: $effect.pre (before DOM), $effect.tracking (check if tracked), $effect.pending (promise count), $effect.root (manual cleanup); avoid for state sync ($derived instead) or circular updates (use function bindings).