Error codesComponents

Changing this <label> cannot rebuild what it shows

MARKLESS_BRANCH_ARM_UPDATE_UNSUPPORTEDerror or warningMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_BRANCH_ARM_UPDATE_UNSUPPORTED: this <label> (<testSource>) cannot be rebuilt when <testSource> changes because <detail>.
Showing or hiding this content replaces it wholesale from compiled markup plus value reads. A component is rebuilt from the markup its own file compiled, so one that brings state of its own or shows a function it was handed, and cannot be run in the browser instead, has nothing left to be rebuilt from, and the browser would ask for code the build never wrote. That failure stops every other update in the same component.
Render the component outside the <label> and hide it with the `hidden` attribute instead of the <label>; or declare what it keeps in the component that owns the <label> and read it inside the <label>; or keep the <label> content to plain elements, text, and state reads. Moving the <label> into the component does not help: there it tests a prop, and a prop that changes is refused the same way.
https://markless.dev/errors/MARKLESS_BRANCH_ARM_UPDATE_UNSUPPORTED

Words in angle brackets change from case to case.

Why

Showing or hiding this content replaces it wholesale from compiled markup plus value reads. A component is rebuilt from the markup its own file compiled, so one that brings state of its own or shows a function it was handed, and cannot be run in the browser instead, has nothing left to be rebuilt from, and the browser would ask for code the build never wrote. That failure stops every other update in the same component.

Fix

Render the component outside the <label> and hide it with the `hidden` attribute instead of the <label>; or declare what it keeps in the component that owns the <label> and read it inside the <label>; or keep the <label> content to plain elements, text, and state reads. Moving the <label> into the component does not help: there it tests a prop, and a prop that changes is refused the same way.

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

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

All error codes