Error codesComponents

Spread attributes render once

MARKLESS_SPREAD_STATIC_SNAPSHOTwarningMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_SPREAD_STATIC_SNAPSHOT: {...<spreadSource>} copies attributes during initial render. When <spreadSource> changes later, these attributes do not update.
The compiler plans DOM-update records for graph-backed attributes it can see; a spread hides which attributes exist, so no update records are planned for it.
Bind attributes that change individually, such as <div id={menu.id} data-open={menu.open} />, and keep the spread only for initial attributes.

Words in angle brackets change from case to case.

Why

The compiler plans DOM-update records for graph-backed attributes it can see; a spread hides which attributes exist, so no update records are planned for it.

Fix

Bind attributes that change individually, such as <div id={menu.id} data-open={menu.open} />, and keep the spread only for initial attributes.

If you accept the warning on purpose, put this comment on the line above it:

// markless-allow MARKLESS_SPREAD_STATIC_SNAPSHOT: the reason you accept it
Where Markless raises it

All error codes