Skip to content

Instantly share code, notes, and snippets.

@thebiltheory
Created April 3, 2020 18:52
Show Gist options
  • Save thebiltheory/e4082a9e3ab27bb7256d267247c16cb5 to your computer and use it in GitHub Desktop.
Save thebiltheory/e4082a9e3ab27bb7256d267247c16cb5 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: 'round13',
initial: "paused",
context: {
elapsed: 0,
duration: 10,
interval: 0.1,
round: 0
},
states: {
paused: {
START: {}
},
running: {},
resting: {}
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment