Skip to content

Conversation

@cassiozen
Copy link
Owner

Useful for debugging. If you set verbose: true in the state machine configuration, it will console.log every time:

  • A transition is successful (the state machine changed to a different state)
  • A transition is unsuccessful (because it was guarded or the state didn't listen to the event that was sent)
  • The context changed

@cassiozen cassiozen merged commit ab25562 into main May 15, 2021
This was referenced May 15, 2021
@github-actions
Copy link

size-limit report 📦

Path Size
dist/usestatemachine.cjs.production.min.js 376 B (0%)
dist/usestatemachine.esm.js 405 B (0%)

@cassiozen cassiozen deleted the verboseMode branch May 17, 2021 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants