Replies: 1 comment
-
In this example, it seems like you can add an Would that work for your use-case? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Per this https://stately.ai/docs/xstate-v5/input#invoking-actors-with-input
and this example:
To confirm that if the state machine has a context defined, the return from
liveFeedback
will need to fully initialize that context?Or is an assign mixed in here...? with an
onDone
and oronReject
?My goal is to have a function (as a service so it awaits than an action), be executed on machine startup to unitize the context.
My specific use case is that I need to check the
window.location.href
and that is then evaluated as part of analways
initial state, based on conditions to then have the machine transition to other states based on the href.All hints and help help appreciated!
Beta Was this translation helpful? Give feedback.
All reactions