~/talk

A State Machine walks into a Svelte Component

Talkat Svelte Summit Fall 2021 · on Saturday, 2021-11-20· [frontend-architecture]
slides:none on file

Built a tiny Svelte-oriented FSM called svelte-fsm that exports a single function and adds about <1 KB to the bundle. It implements the Svelte store contract so you use $state in templates, supports actions as functions, and has an enter lifecycle hook used to kick off async work; demo includes a toggle and a form with four states (entering → submitting → completed / invalid) where promises dispatch success or failure transitions. TypeScript support is limited and no hierarchical states yet.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Zendever project
  3. 2:22Finite state machines 101
  4. 4:28Basic toggle example
  5. 5:29Practical form example
  6. 5:50Async state handling
  7. 6:00Form UI implementation
~/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.