← all demos

Params & persistence

createParams builds one signal per key from a defaults object. Those defaults are also the schema — they fix the key set and the type of every value, so a stale save or a hand-edited link cannot put a string where a number belongs.

$snapshot()

$toQuery() — a link to this exact state

Log

Try: change something and reload — it comes back. Then press Apply junk: values of the wrong type and unknown keys are rejected, and the panel does not move. Copy link puts the current state in the query string; opening that link seeds the store from it.