~/talk

Scaling State in Vue: Why XState Matters

Talkat Vue.js Nation 2025 · 2025-01-29..01-30· [frontend-architecture, javascript]
slides:none on file

Shows refactoring a Pinia-backed multistep signup form into an XState machine for Vue, replacing ad hoc step increments with a declared multistep form refactor that stores form data in machine context, uses guards for validation, and uses invoke for async submissions that auto-transition to success or error. Demo wires machine with Vue composition API, uses the Stately visualizer and inspector, demonstrates retry/reset flows, and largely works aside from a small demo bug.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27State management matters
  3. 5:00State management in Vue
  4. 10:43State machines for complex state
  5. 14:20Live demo: XState form refactor
  6. 23:19Form navigation and validation
  7. 25:08Async operations with XState
  8. 28:19Error handling and reset
  9. 31:18Visualizing state machines
  10. 32:45Key benefits of XState
  11. 36:41When to use XState
  12. 37:04Q&A
~/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.