-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Currently emitting invalid state transition emits error nanostate.emit: invalid transition ${this.state} -> ${eventName}.
Do you have any ideas on how to handle those errors? E.g.
var machine = nanostate('cash', {
cash: { check: 'check' },
check: { cash: 'cash' }
})
machine.onError((e) => {
console.log(error)
throw e
})
machine.emit('robbery')kareniel and yoshuawuyts
Metadata
Metadata
Assignees
Labels
No labels