Last active
March 27, 2020 12:20
-
-
Save RafalFilipek/105000d8f33511dc36adbf852c0c6144 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains 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 m = Machine({ | |
id: 'offerActionResolver', | |
initial: 'idle', | |
states: { | |
idle: { | |
on: { | |
'': [ | |
{ target: 'fix', cond: 'isFix'}, | |
{ target: "procedures"} | |
] | |
}, | |
}, | |
fix: { | |
on: { | |
'': [ | |
{ target: 'addresses', cond: 'isLogged' }, | |
{ target: 'localization' }, | |
] | |
} | |
}, | |
mobile: {}, | |
// to tylko, żeby zadziałało. To są kroki Suflea | |
addresses:{}, | |
localization: {}, | |
procedures: {} | |
} | |
}, { guards: { isFix: () => true, isLogged: () => true } }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment