xstate icon indicating copy to clipboard operation
xstate copied to clipboard

[core] Transition function

Open davidkpiano opened this issue 1 year ago • 5 comments

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.

davidkpiano avatar Jun 26 '24 17:06 davidkpiano

🦋 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

changeset-bot[bot] avatar Jun 26 '24 17:06 changeset-bot[bot]

Just a reminder to remove commented lines before merging 💜

with-heart avatar Jun 30 '24 20:06 with-heart

@Andarist Final review?

davidkpiano avatar Jul 11 '24 15:07 davidkpiano

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

Jamscott avatar Jul 23 '24 10:07 Jamscott

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 )

davidkpiano avatar Jul 23 '24 11:07 davidkpiano