Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verbose Option #13

Merged
merged 1 commit into from
May 15, 2021
Merged

Verbose Option #13

merged 1 commit into from
May 15, 2021

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.

1 participant