xstate
xstate copied to clipboard
[core] Transition function
This PR adds the transition(…) function for returning a [snapshot, actions] tuple given the machine, state, and event.
Its main use-case is for server-side workflows and a pure way of handling state transitions for actor logic.
🦋 Changeset detected
Latest commit: 9ee75649fd6e7683879af354b86d125b3ad01aee
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 6 packages
| Name | Type |
|---|---|
| xstate | Minor |
| @xstate/graph | Major |
| @xstate/react | Major |
| @xstate/solid | Major |
| @xstate/svelte | Major |
| @xstate/vue | Major |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Just a reminder to remove commented lines before merging 💜
@Andarist Final review?
Is there any update on the status of this, as I really need this with the deprecation of starting interpreter at a state on server side machines
Is there any update on the status of this, as I really need this with the deprecation of starting interpreter at a state on server side machines
We're planning on merging it soon (cc. @Andarist )