Is there a way to have an event not trigger a transition? #1740
Unanswered
NullVoxPopuli
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Might just be a bug with the older version of XState that is used. Here, it's visualized in the inspector: https://codesandbox.io/s/focused-jang-fmls9?file=/src/index.js (make sure to enable popups) and it seems like it does the correct behavior. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this chart: https://xstate.js.org/viz/?gist=c8caac24b701ce124bc8e7ffbaa43ac7
for context, this is going to control a card game, the "player's hand".
ADJUST
is the event that will be called on window resize, because on the playing cards will need their positions adjusted / scaled / etcI'm trying to figure out if the
ADJUST
event can leave the current state.If you click
SELECT
and then clickADJUST
, it seems the state is reset.Is there a way to prevent that? I'd like to remain in the
selected
state whenADJUST
happens.Beta Was this translation helpful? Give feedback.
All reactions