Watch our latest live stream where we cover actors in XState. Learn more about common use cases, more complex state machines, and the actor model.
Chapters​
Watch the video to find out about actors in XState V5:
- 0:00 Intro
- 1:10 Team intros
- 1:32 XState V5: actor first
- 2:08 Modeling a cocoa dispensing machine in the Studio
- 10:34 Modeling actors
- 12:23 Actor sequence diagram
- 15:32 Adding implementation details
- 22:01 Spawning actors
- 26:15 Callback actors
- 29:37 Inspect your actor system
- 34:00 Actor communication
- 37:57 Difference between invoked and spawned actors
- 38:49 Generating a React app from your machine
- 39:29 Spawning arrays of actors
- 42:24 Managing and modeling spawned actors
- 49:33 Enqueue actions
- 52:19 Why are actions not called effects?
- 53:13 What is a good example of output from a child actor to a parent actor?
- 1:01:01 Migrating from XState V4 to V5
- 1:01:41 Promise actors
- 1:03:37 Transition actors
- 1:04:43 Wrap up
Links and further resources​
- Want to get into the basics of XState?
- XState V5 release blog post
- Partial event descriptors
- TLDraw
- Generate React app with Stately
- CodeSandbox code
- Use setup(...) to specify types
- Blog post on Sources
- Request features at
- Stately Inspector
- Migrating to XState V5 docs
- Migrating to XState V5 webinar
- Promise actors
- Transition actors
- Observable actors
- Callback actors
- Stately Studio
- Join our Discord
Be the first to find out about our next live stream by subscribing to our YouTube channel, Twitch channel, or following us on LinkedIn.