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
Is it possible?
I tried in a different ways but I always get an error.
I need to do something like this:
states: A, B and C.
transition: step.
From state A, 'step' transition must be a function which returns B or C depending on asynchronous operation.
var fsm = new StateMachine({
init: 'A',
transitions: [
{ name: 'step',
from: 'A',
to: async function() {
var state = await getState()
return state
}
}
]
});
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Is it possible?
I tried in a different ways but I always get an error.
I need to do something like this:
states: A, B and C.
transition: step.
From state A, 'step' transition must be a function which returns B or C depending on asynchronous operation.
Thanks in advance.
The text was updated successfully, but these errors were encountered: