Error codesLists

This @for renders its rows once and never updates them

MARKLESS_REPEAT_ROWS_FROZENerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_REPEAT_ROWS_FROZEN: @for (const <itemName> of <collectionSource>) takes its rows from `<rootName>`, which is neither a state cell nor a computed, and the compiler cannot recompute it in the browser<input>. The row body reads `<readSource>`, a <value> that can change after that render, and those rows would silently keep their first-render values.
A keyed repeat updates its rows through the graph node its collection resolves to. A module constant or a `const` built from props, state and module values is turned into one automatically; a collection the browser cannot rebuild renders its rows once, so any reactive read inside a row would freeze at its first-render value.
Build the rows from values the browser can recompute: a module-level `const <rootName> = [...]`, `const <rootName> = state([...])`, or `const <rootName> = computed(() => ...)` inside the component<value>; or keep the rows static by reading only `<itemName>` inside them.
https://markless.dev/errors/MARKLESS_REPEAT_ROWS_FROZEN

Words in angle brackets change from case to case.

Why

A keyed repeat updates its rows through the graph node its collection resolves to. A module constant or a `const` built from props, state and module values is turned into one automatically; a collection the browser cannot rebuild renders its rows once, so any reactive read inside a row would freeze at its first-render value.

Fix

Build the rows from values the browser can recompute: a module-level `const <rootName> = [...]`, `const <rootName> = state([...])`, or `const <rootName> = computed(() => ...)` inside the component<value>; or keep the rows static by reading only `<itemName>` inside them.

Where Markless raises it

All error codes