Skip to content

Instantly share code, notes, and snippets.

@chukinas
Last active May 14, 2020 11:17
Show Gist options
  • Save chukinas/3c193946ba8627219629a83c06bf8124 to your computer and use it in GitHub Desktop.
Save chukinas/3c193946ba8627219629a83c06bf8124 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 rudderJammedLeft = {
initial: 'no',
states: {
no: {},
notYet: {
on: {
START_TURN: 'yes'
}
},
yes: {
on: {
START_TURN: 'no'
}
},
},
on: {
RUDDER_JAM_LEFT: '.notYet',
},
}
const plane = Machine({
id: 'plane',
initial: 'idle',
context: {
retries: 0
},
type: 'parallel',
states: {
rudderJammedLeft
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment