Skip to content

Instantly share code, notes, and snippets.

@entorenee
Last active July 21, 2020 22:23
Show Gist options
  • Save entorenee/1ba9f404ec88558ee43545936696eba1 to your computer and use it in GitHub Desktop.
Save entorenee/1ba9f404ec88558ee43545936696eba1 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({
initial: 'idle',
states: {
idle: {},
loading: {},
success: {},
failure: {}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment