A shared() value is read outside a component
The message
MARKLESS_SHARED_REFERENCE_OUTSIDE_COMPONENT: A shared() value is read outside a component
A shared() value belongs to a request, a container or a rendered widget, and only a component body knows which one. Read anywhere else, the code would reach the value before any request made it.
Call it inside the callback: `const <name>Value = <name>()`.
https://markless.dev/errors/MARKLESS_SHARED_REFERENCE_OUTSIDE_COMPONENTWords in angle brackets change from case to case.
Why
A shared() value belongs to a request, a container or a rendered widget, and only a component body knows which one. Read anywhere else, the code would reach the value before any request made it.
Fix
Call it inside the callback: `const <name>Value = <name>()`.
Related
Where Markless raises it
Button sounds are from Josh Comeau's Button Sounds library.