This call is assumed to change the state it is passed
The message
MARKLESS_CALL_WRITES_ASSUMED: `<call>` is handed `<argument>`, and Markless cannot see which parts of it the call changes, so all of `<argument>` is treated as changed once the call returns.
The called function is looked up at run time, comes from a package, or passes the value on to code the compiler cannot read. Changes it makes before returning still reach the page; everything that reads the value updates, not only what changed.
Call a function from a .ts or .tsrx file in this project so Markless can read which paths it writes, or write the state in the handler itself.
https://markless.dev/errors/MARKLESS_CALL_WRITES_ASSUMEDWords in angle brackets change from case to case.
Why
The called function is looked up at run time, comes from a package, or passes the value on to code the compiler cannot read. Changes it makes before returning still reach the page; everything that reads the value updates, not only what changed.
Fix
Call a function from a .ts or .tsrx file in this project so Markless can read which paths it writes, or write the state in the handler itself.
Related
Where Markless raises it
Button sounds are from Josh Comeau's Button Sounds library.