You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say we have root machine that creates child machines and transits their state.
If we serialize this state, deserialize it, and then try to use useMachine hook from @xstate/react with options.state set to deserialized state, we will get the following error:
Unable to send event to child 'Child id' from service '(machine)'.
Expected result
No errors, parent and child stated are deserialized correctly
Description
Let's say we have root machine that creates child machines and transits their state.
If we serialize this state, deserialize it, and then try to use useMachine hook from @xstate/react with options.state set to deserialized state, we will get the following error:
Expected result
No errors, parent and child stated are deserialized correctly
Actual result
The error is emitted
Reproduction
https://codesandbox.io/s/keen-nobel-i8mymo?file=/src/App.tsx
Additional context
Steps to reproduce the issue in the codesandbox:
The text was updated successfully, but these errors were encountered: