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
Describe the bug exit actions on the root of a state machine are flagged by the no-invalid-state-props rule, but they work exactly as expected when the machine is run using invoke from a parent machine so I don't think they should be marked as an error?
Expected behavior exit actions on the root of a machine are allowed by the rule.
Actual behavior exit actions on the root of the machine are flagged as invalid.
Versions (please complete the following information):
Describe the bug
exit
actions on the root of a state machine are flagged by theno-invalid-state-props
rule, but they work exactly as expected when the machine is run usinginvoke
from a parent machine so I don't think they should be marked as an error?Expected behavior
exit
actions on the root of a machine are allowed by the rule.Actual behavior
exit
actions on the root of the machine are flagged as invalid.Versions (please complete the following information):
Additional context
https://stackblitz.com/edit/eslint-plugin-xstate-exit-at-root?file=statechart.js
Use
npm run lint
in the terminal pane to see the rule incorrectly match.The text was updated successfully, but these errors were encountered: