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
The machine receives a PING from an invoked callback and is supposed to transition to a refresh state that is of type history. The state it transitions back to does not re-invoke the service and actions defined for that state but does clean up the invoked callback.
I also have an entry action on the main machine for logging that's showing that the event is a null event (type is an empty string). In version 4.32 this is still xstate.init which is what I expected.
Both issues are not present in version 4.32
Expected result
Expected event of xstate.init to be passed to log action in avocado machine's booting.entry action.
Expect query machine to re-invoke avocadodItemsSubscription after moving back and forth between history node
Using the provided Codesandbox example:
Watch the console when it starts up
After clicking test which sends PING to the query machine:
I would expect these two logs again:
Actual result
The log action on entry logs an empty string as the event type rather than xstate.init
and the invoked child machine does not re-invoke the expected callback service and action after transitioning back from the history state.
Description
The machine receives a PING from an invoked callback and is supposed to transition to a refresh state that is of type
history
. The state it transitions back to does not re-invoke the service and actions defined for that state but does clean up the invoked callback.I also have an entry action on the main machine for logging that's showing that the event is a null event (type is an empty string). In version
4.32
this is stillxstate.init
which is what I expected.Both issues are not present in version
4.32
Expected result
Using the provided Codesandbox example:
Watch the console when it starts up
After clicking test which sends PING to the query machine:
I would expect these two logs again:
Actual result
The log action on entry logs an empty string as the event type rather than
xstate.init
and the invoked child machine does not re-invoke the expected callback service and action after transitioning back from the history state.
Reproduction
https://codesandbox.io/s/still-bash-it7513?file=/src/App.tsx
Additional context
No response
The text was updated successfully, but these errors were encountered: