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

Feature Request: Warning/Error for Unhandled Events in Current State #3

Open
milanbgd011 opened this issue Oct 28, 2024 · 0 comments
Open

Comments

@milanbgd011
Copy link

Description

When an event is sent to a machine but no state can handle it (no matching transition or action), it would be valuable to have a warning or error. This would help catch potential issues during development, such as:

  • Typos in event names
  • Events sent at wrong time/state
  • Missing event handlers
  • Race conditions where events arrive too early/late

Current Behavior

  • Events that don't match any transitions are silently ignored
  • No warning/error is shown when an event can't be handled
  • Developer has no feedback about unhandled events
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

No branches or pull requests

1 participant