How to use the createActorContext method to set the initial state? #5308
Unanswered
gilsonviana
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the createActorContext method from
@xstate/react
and I'm wondering if it's possible to set the value for the initial state from there.On the state machine declaration, I have set the initial to be
idle
, however, I would like to set it to a different value based on some feature flag.i.e The app uses a feature flag to set what initial state it should be.
Beta Was this translation helpful? Give feedback.
All reactions