Demonstrates when — a one-time reactive trigger.
- Callback form —
when(predicate, effect)runs the effect once when the predicate becomes true - Promise form —
await when(predicate)for use with async/await - Auto-disposal —
whenautomatically cleans up after firing
npm install
npm run dev