Integration: Svelte

Use XState state machines with Svelte stores and reactivity.

Overview

XState integrates with Svelte through custom stores or the xstate-svelte package, bridging machines with Svelte's reactive declarations.

Key Concepts


    Svelte store wrappers for machines

    Reactive state subscriptions with $

    Actor disposal on component destroy

Prerequisites

TODO


    Add Svelte 5 runes integration

    Add SvelteKit route machine pattern

    Add shared store examples

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Connections0

Connections show where other documents or comments link to this document.

Related documents

Loading connections…