Skip to content

Instantly share code, notes, and snippets.

@RafalFilipek
Last active March 27, 2020 12:20
Show Gist options
  • Save RafalFilipek/105000d8f33511dc36adbf852c0c6144 to your computer and use it in GitHub Desktop.
Save RafalFilipek/105000d8f33511dc36adbf852c0c6144 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
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