Skip to content

Instantly share code, notes, and snippets.

@signaes
Last active August 31, 2020 15:26
Show Gist options
  • Save signaes/681a43fa595cacc821a0fd3166b4daa8 to your computer and use it in GitHub Desktop.
Save signaes/681a43fa595cacc821a0fd3166b4daa8 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
const defineProgramDesktopMachine = Machine({
id: 'defineProgramDesktop',
initial: 'idle',
context: {
retries: 0
},
states: {
idle: {
on: {
DEFINE_WORKOUTS: 'define_workouts',
DEFINE_DAY: 'define_day',
}
},
define_workouts: {
on: {
BACK: 'idle',
COMMIT: 'idle',
},
},
define_day: {
on: {
BACK: 'idle',
COMMIT: 'idle',
},
},
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment