useMachine
v4 to v5 confusion.
#4899
Unanswered
razodactyl
asked this question in
General
Replies: 1 comment
-
Sorry for the overload. This is part of the migration guide: https://stately.ai/docs/migration#set-context-with-input-not-machinewithcontext |
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
-
The documentation for xState v5 is a bit confusing in regards to setting the initial
context
in React.I'm using the
@xstate/react
library - It says we can join the Discord discussion but the link 404s.v4 example of
useMachine
(FROM THE TOP OF MY HEAD)v5 example of
useMachine
I found my answer in the
xstate react tests
Sorry for the mess above, my mind is overloaded with A LOT of xState concepts and would greatly appreciate input from anyone better in the know than me!
Beta Was this translation helpful? Give feedback.
All reactions