Form state
A form whose state is a stream: edits push into formData$ and fold together with scan, seeded from localStorage. Submitting samples the latest data with withLatestFrom and switchMaps into the storage write, emitting saving → saved states that drive the button label.
The field values read useSyncObservable (controlled inputs), while the submit state reads useObservable. Submit, then reload the sandbox preview — the form comes back from storage.
Last updated on