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
So, some method callbacks will be called. Some of which are returning promises that must be resolved before you make the next transition, otherwise you will never leave solid state
But you are making a transition fsm.melt() immediately after building a new StateMachine.
You never waited for onLeaveSolid or onLeaveState promise to be resolved
As for the solution, I'm not sure. I cannot solve this problem too: When you return a promise in one of the initial state's methods, how do you resolve it?
I get error "transition is invalid in current state" when using a Promise in following "any" event:
Repro case:
I would expect the output to be:
I got:
transition is invalid in current state
The text was updated successfully, but these errors were encountered: