State holds a value the server cannot send
The message
MARKLESS_SERIALIZE_UNSUPPORTED_VALUE: Cannot serialize value at <cellPrefix> because unknown values are not durable graph state.
Serialization is for durable graph state. Functions and host/runtime resources cannot be restored during resume.
Move runtime resources into attach={...}, make the value serializable state, or derive it with computed().
https://markless.dev/errors/MARKLESS_SERIALIZE_UNSUPPORTED_VALUEWords in angle brackets change from case to case.
Why
When a page is rendered on a server, Markless sends its state to the browser as data. This value is a function or a live object, so it cannot travel that way.
Fix
Keep plain data in state. Create live objects, like sockets, in an attach={...} behavior on an element. If the value comes from other state, use computed().