Error codesState

Rows of a computed() list are read-only

MARKLESS_COMPUTED_ROW_WRITEerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_COMPUTED_ROW_WRITE: Cannot write to "<target>" because "<itemName>" is a row of "<name>", which is a computed() value, and computed() values are read-only.
A computed() value is derived from other state every time that state changes, so a change written into one of its rows would have no owner: the next recompute would replace it, and the serialized graph could not say where it belongs after resume.
Write the change to <sourceHint> instead, for example by mapping it to a new array: `<list> = <list>.map((item) => (item.id === <itemName>.id ? { ...item, field: value } : item))`. "<name>" recomputes and the row updates.
https://markless.dev/errors/MARKLESS_COMPUTED_ROW_WRITE

Words in angle brackets change from case to case.

Why

A computed() value is derived from other state every time that state changes, so a change written into one of its rows would have no owner: the next recompute would replace it, and the serialized graph could not say where it belongs after resume.

Fix

Write the change to <sourceHint> instead, for example by mapping it to a new array: `<list> = <list>.map((item) => (item.id === <itemName>.id ? { ...item, field: value } : item))`. "<name>" recomputes and the row updates.

Where Markless raises it

All error codes