A value change becomes an event

Fictional sample. Values and pseudocode illustrate the mechanism; they are not evidence from a running product.

English source · Russian source

Follow the value to its consumer.

Shape model

Updated effects

Microtask boundary

Visual-change consumer

Updated effects

Illustrative call sequence

shape.effects = next;
queueMicrotask(fireVisualChange);
consumer.onVisualChange();
  1. Shape model → Microtask boundary: schedule