Replies: 1 comment 5 replies
-
You get the const [state, send, service] = useMachine(someMachine); Then, you can |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be helpful for me if you could share that how could i share machine instance with multiple screens in react native project.
Let's supposed i have three screen in my project A,B and C, i have created machine instance by using this line "const [current, send] = useMachine(myMachine)" in A screen.
Now to make transition i need "send" in screen B and C.
So how could i use the same instance of machine without loosing of context and current state machine .Either i need to pass it to next screen as an param or something else?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions