Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

06 — When

Demonstrates when — a one-time reactive trigger.

Concepts

  • Callback formwhen(predicate, effect) runs the effect once when the predicate becomes true
  • Promise formawait when(predicate) for use with async/await
  • Auto-disposalwhen automatically cleans up after firing

Run locally

npm install
npm run dev

Open in CodeSandbox

Open in CodeSandbox