~/talk

Into the Visual World of State Machines

Talkat Øredev 2025 · 2025-11-05..11-07· [frontend-architecture, react]
slides:none on file

Replaces scattered booleans with a single state string, wires UI to a createMachine + useMachine pattern, and enforces transitions so invalid combos disappear; moves analytics into an entry action, uses state.can to enable buttons, and invokes async checks with a fromPromise invoke to call OpenAI for answer validation. Shows VS Code visual editor and browser inspector from Stately, demos a multiplayer Pictionary‑style game that survives many players and 20s rounds, all implemented with XState and a visual editor.

AI-written summary · about

  1. 0:00Introduction
  2. 0:27Simple state management demo
  3. 2:11Problems with initial approach
  4. 3:56Refactoring to single state
  5. 5:19State machines concept
  6. 6:48Visualizing transitions with Teal Draw
  7. 7:30Demo with XState
  8. 9:02XState in React component
  9. 11:32Enforcing transitions with XState
  10. 12:37Disabling buttons by events
  11. 13:41UI vs state logic benefits
  12. 14:23Analytics as entry action
  13. 15:06Advanced state machine features
  14. 15:48Visualizing with Stately AI
  15. 17:10VS Code extension for editing
  16. 17:55Simulating in VS Code
  17. 18:58Debugging dev tools
  18. 20:26Demo with AI validation
  19. 22:35XState invoke for async ops
  20. 25:10Guards for conditional transitions
  21. 26:33Actions for side effects
  22. 27:18State machines for forms
  23. 28:23Multiplayer drawing game
  24. 30:08Drawing game demo
  25. 33:34Summary: When to use
  26. 34:36Q&A: Replacing saga stack
~/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.