How rendering works
View runs when a display attaches and creates bindings to model units. Clicking the counter changes data, not a new description of the whole component.
const increment = action(() => {
self.count.value++;
});
view: (_props, self) => <button
onClick={self.model.increment}
>Count: {self.model.count}</button>
// Current state: count = 0; view calls = 1.
The initial view connects count to the button's text.
incrementreadycount: 0same storeCount: 0same buttonThree update paths
Model units drive DOM bindings or explicit structural ranges.
View runs once per attachment. No reactive code compiler.
Read this diagram as text
- Scalar. The store updates one existing text node; view is not executed again.
- Conditional structure. Only the explicit fragment reruns. Its range is recreated, even if tags match. Other ranges are untouched.
- List operation. The source supplies the edit. For does not match old/new row snapshots.
A scalar store changes existing text or a DOM property.
A conditional function owns a separate DOM range. A dependency change removes that range and constructs its replacement; neighboring bindings stay in place.
For receives insert, remove and move operations from its container, rather than matching list snapshots. An ordinary computed array has no operation feed and recreates its rows on change, with a development warning.
None of these paths uses reconciliation. Model and display lifetimes differ; see ownership and retention.