Last active
July 25, 2019 09:05
-
-
Save wzulfikar/c63733d6f7847d5d5fc89d6d9d26f9fb 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
const fetchMachine = Machine({ | |
id: 'Point of Sale', | |
initial: 'place order', | |
context: { | |
retries: 0 | |
}, | |
states: { | |
'place order': { | |
on: { | |
'unpack qr': 'qrcode' | |
} | |
}, | |
'qrcode': { | |
on: { | |
'dealer scan': 'dashboard', | |
'customer scan': 'dashboard' | |
} | |
}, | |
dashboard: '' | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment