Describe the bugexit 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 behaviorexit actions on the root of a machine are allowed by the rule.
Actual behaviorexit 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.