Explorer

Watch the graph work

Each graph below is a real ReactiveDomain. Every computed records what it read and whether its result changed, and the colors come straight from those records. Nothing here reads a computed to draw it, so laziness looks exactly like it behaves.

  • fresh
  • dirty
  • maybe stale
  • never read
  • released

label is observed, so a write reruns everything it depends on at once. Switch observation off and the derived nodes are released. Read label to bring them back, then change price: now nodes only go dirty and wait to be read.

Cart
price: freshprice12heldquantity: freshquantity2heldcoupon: freshcouponfalseheldsubtotal: freshsubtotal24×1discount: freshdiscount0×1total: freshtotal24×1label: freshlabel"$24"×1observed
  • fresh
  • dirty
  • maybe stale
  • never read
  • released
price
12
quantity
2
coupon
observe label

Events

Change something to see what runs.