Bug Proofing State Transition Implementations #1544
Unanswered
VinayaSathyanarayana
asked this question in
Ideas
Replies: 1 comment
-
How would you define a transition as "failing"? In state machines, everything is a "signal" (i.e., "event"). So an error is an event just like any other event. Would you want some strict mode to ensure that e.g., |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have seen bugs being introduced multiple times when the developer
Examples could be database update fails, then the state has to reflect that correctly
Should we not have explicit mechanism to help make the state diagram robust
Current_State --> Transition --> next.state_If_Transition is Success, next.state_If_Transition_Fails
There could be multiple next.states based on the error code
How do we enhance the xstate library to do this?
Beta Was this translation helpful? Give feedback.
All reactions