Error codesComponents

This <label> renders <shown> in the browser when it changes

MARKLESS_BRANCH_ARM_RENDERS_IN_BROWSERwarningMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_BRANCH_ARM_RENDERS_IN_BROWSER: when <testSource> changes, the browser renders this <label>'s content by running <shown>, instead of rebuilding it from compiled markup. Each time the content appears, <shown> starts fresh: anything it kept from the last time it was shown is gone.
A flip rebuilds plain markup and value reads without running anything. Content that only running a component can produce is rendered in the browser the way the server rendered it, which loads that component and its records on the first flip.
To keep <shown> and what it holds across changes, render it outside the <label> and hide it with an attribute instead.
https://markless.dev/errors/MARKLESS_BRANCH_ARM_RENDERS_IN_BROWSER

Words in angle brackets change from case to case.

Why

A flip rebuilds plain markup and value reads without running anything. Content that only running a component can produce is rendered in the browser the way the server rendered it, which loads that component and its records on the first flip.

Fix

To keep <shown> and what it holds across changes, render it outside the <label> and hide it with an attribute instead.

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

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

All error codes