Hosted onlinkforest.hyper.mediavia theHypermedia Protocol

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 createMachine API

    New fromPromise, fromCallback, fromObservable actors

    Built-in actor model with spawn and input

    Improved type inference

    Removed deprecated assign, send, sendParent in favor of new patterns

Prerequisites

Related Pages


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