- Published on
- · Matt Pocock
XState Docs Speedrun - 2022
This post is auto-generated from a public YouTube video for personal study notes. It is not an endorsement. The transcript is machine-derived and may contain errors; refer to the original video for accuracy.
About this video
XState core member Matt Pocock speedruns the XState docs to teach you everything you need to know to get started with XState.
0:00 Introduction 1:00 Getting started 1:35 States & Transitions 3:42 Initial states 4:00 Final states 5:26 Compound states 7:34 Parallel states 9:46 Self transitions 11:00 Actions 14:20 Entry & Exit actions 16:17 Machine ids 16:42 Machine options 17:59 .withConfig 18:35 machine.transition 20:45 state.matches 21:34 state.nextEvents 22:38 state.can 23:41 Other state properties 27:17 Context & assign 32:29 Always transitions & Guards 36:03 Infinite always error - explanation and fix 39:30 If/else transitions 42:36 interpret 44:47 Transitions in FSM's 45:30 Wildcard events 48:10 Multiple targets 49:06 Parent/child inheritance of transitions 51:35 Effects 51:54 Invoking promise-based services 55:38 Services type safety 58:40 Invoked callbacks