Skip to content

Instantly share code, notes, and snippets.

@ChristianMurphy
Created March 9, 2021 23:02
Show Gist options
  • Save ChristianMurphy/324625538caf2a32b290fe5b336fb205 to your computer and use it in GitHub Desktop.
Save ChristianMurphy/324625538caf2a32b290fe5b336fb205 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 fetchMachine = Machine({
id: 'iframe-manager',
initial: 'idle',
states: {
idle: {
on: {
HAND_SHAKE: 'connecting'
}
},
connecting: {
on: {
READY: 'ready',
TIMEOUT: 'idle'
}
},
ready: {
type: 'final'
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment