I don't understand why this machine is stuck in it's initial state #1565
-
Hey there, I am trying to build a state machine that models (in the end async) form field validation. but somehow the machine never leaves it's initial state (even when the guard is visualized as "green"): https://gist.github.com/karfau/7711b52a5cb2e43e59d24b00e3c60b53 https://xstate.js.org/viz/?gist=7711b52a5cb2e43e59d24b00e3c60b53 I also know that it should work/be enough to add a top level Any help is much appriciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Because it will never run the the second action here since the first action has no condition and will be picked.
|
Beta Was this translation helpful? Give feedback.
Because it will never run the the second action here since the first action has no condition and will be picked.