Replies: 1 comment 2 replies
-
Could you describe your issue in more detail? What do u have in mind by generating transitions? XState should not transition away from |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For example, if my state machine is defined as follows:
When the machine is at the
running
state and receives aSTART
event, it still generates a transition fromrunning
torunning
. I understand I can usestate.changed
to filter out those meaningless transitions, but what if the state machine is defined as follows:Now I want to allow explicit idle->idle transitions but still don't want running->running transitions.
I used to use SCION. It never generates a transition when an event cannot be handled by the current state. Can I do that with XState?
Beta Was this translation helpful? Give feedback.
All reactions