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
Previous effects
Microtask boundary
Waiting for the change
Visual-change consumer
Updated effects
Waiting for the event
Illustrative call sequence
shape.effects = next;
queueMicrotask(fireVisualChange);
consumer.onVisualChange();shape.effects = next;
queueMicrotask(fireVisualChange);
consumer.onVisualChange();- Shape model → Microtask boundary: schedule