Skip to content

Instantly share code, notes, and snippets.

@pckilgore
Last active March 5, 2021 19: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 pckilgore/c658b99039db90ff549b5a7bafee3efc to your computer and use it in GitHub Desktop.
Save pckilgore/c658b99039db90ff549b5a7bafee3efc 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: 'auth_status',
initial: 'loggedOut',
states: {
loggedIn: {
on: {
LOGOUT: 'loggedOut'
}
},
loggedOut: {
on: {
LOGIN: 'loggedIn'
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment