~/talk

Formal Forms with State Machines

Talkat ReactNext 2019 · on Tuesday, 2019-06-11· [react]
slides:none on file

Forms become deterministic when modeled as statecharts that expose explicit transitions, guards, context and effects rather than ad‑hoc handlers. The talk demonstrates a concrete implementation: XState with an useMachine hook, returning next state plus declarative effects, invoking cancellable promises, visualizing machines, and composing hierarchical and orthogonal states to avoid state explosion. Examples include a wizard with async validation, a tiny finite‑machine bundle, Redux DevTools integration, actors and observable support in XState 4.6.

AI-written summary · about

  1. 0:00Start
  2. 2:36Redux
  3. 13:48Date pickers are state machines.
  4. 17:50The Effect Reducer
  5. 18:19When do effects happen?
  6. 23:52State Explosion Problem
  7. 25:39Hierarchical states
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.