Skip to content
These are temporary community docs. The official docs are in progress.Help improve them
Markless
Esc
↑↓navigate↵open⌘Jpreview
On this page

MARKLESS_COMPUTED_ROW_WRITE

Rows of a computed() list are read-only: a Markless compiler error.

Error from the compiler, while it builds your .tsrx files.

What happened

Markless prints the message, the reason, and a suggestion:

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.

How to fix it

Start with the suggestion in the message above.

This page has no guide yet. Help write it.

Where it comes from

@markless/compiler raises this code. Source:

Read how to read a Markless error, or go back to all error codes.

Was this page helpful?