defuss-store demo

Change anything, then reload. The devtools on the right log every change.

A form that remembers

Each field is one key of one store: typing calls store.set('name', value). Reload the page and the values come back from localStorage, validated before they reach the form.

Nothing saved yet
Plan

A boolean in the store; nothing is sent anywhere.

Store devtools

Each line is one call of store.subscribe((next, previous, changedPath) => …). Nothing else feeds it.

Changes, newest first

form.get()

persistence.status()

Get the form state

formStore.get()