Skip to content

Instantly share code, notes, and snippets.

@nhducit
Last active October 4, 2021 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nhducit/b665e5f09cc2f68a39a9fc8520f9d182 to your computer and use it in GitHub Desktop.
Save nhducit/b665e5f09cc2f68a39a9fc8520f9d182 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: 'fetch',
initial: 'not_defined',
states: {
not_defined: {
on: {
MATCH_A_RULE: 'not_activated'
}
},
not_activated: {
on: {
USER_ACTIVATE_TOGGLE: 'activated',
}
},
activated: {
type: 'final'
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment