Created
May 21, 2021 08:38
-
-
Save s-o-r-o-u-s-h/3a7a71f2e056e2e221ba367a1600ddfe to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions | |
| // - XState (all XState exports) | |
| const fetchMachine = Machine({ | |
| id: 'Checking Area', | |
| initial: 'not_checked', | |
| context: { | |
| retries: 0 | |
| }, | |
| states: { | |
| not_checked: { | |
| on: { | |
| primarily_ok: 'initially_ok', | |
| not_ok_washing: 'lift_to_Damaged_washing', | |
| not_ok_repairing: 'lift_to_Damaged_repairing', | |
| } | |
| }, | |
| initially_ok: { | |
| on: { | |
| not_ok_washing: 'lift_to_Damaged_washing', | |
| not_ok_repairing: 'lift_to_Damaged_repairing', | |
| is_ok: 'lift_to_Healthy' | |
| } | |
| }, | |
| lift_to_Damaged_washing: { | |
| type: 'final' | |
| }, | |
| lift_to_Damaged_repairing: { | |
| type: 'final' | |
| }, | |
| lift_to_Healthy: { | |
| type: 'final' | |
| }, | |
| } | |
| }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment