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
An element of transitions: [] is as below:
{name: 'deleteRec', from: ['idle', 'deleting', 'renaming'], to: function(s) {return s; }},
I call the transition in the state of 'idle' as below, but the condition always returns false!
if (fsm.can('deleteRec')) {
So I have to use if (['idle', 'deleting', 'renaming'].includes(fsm.state)) {
The text was updated successfully, but these errors were encountered:
An element of transitions: [] is as below:
{name: 'deleteRec', from: ['idle', 'deleting', 'renaming'], to: function(s) {return s; }},
I call the transition in the state of 'idle' as below, but the condition always returns false!
if (fsm.can('deleteRec')) {
So I have to use if (['idle', 'deleting', 'renaming'].includes(fsm.state)) {
The text was updated successfully, but these errors were encountered: