Skip to content

V5 beta - Starting a finite state machine in an arbitrary state #4318

Answered by davidkpiano
m-graham asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, using machine.resolveStateValue(...) is the correct approach if you're just providing a state value.

However, this function does not give a way for you to provide context if you need that, so just be aware of that.

There is a PR that provides a helpful error if you pass in an incompatible state value: #4290

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@m-graham
Comment options

Answer selected by m-graham
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants