Tooling: XState v5
Tooling: XState v5 Guide
What's new in XState v5 and how to migrate from v4.
Overview
XState v5 introduces a simplified API, better TypeScript support, the actor model, and new actor types like fromPromise and fromTransition.
Key Changes
Simplified
createMachineAPINew
fromPromise,fromCallback,fromObservableactorsBuilt-in actor model with
spawnandinputImproved type inference
Removed deprecated
assign,send,sendParentin favor of new patterns
Prerequisites
TODO
Add migration guide from v4 to v5
Add comparison of old vs new APIs
Add recipe book for common v5 patterns
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime
Powered by Seed HypermediaOpen App