Skip to content

Instantly share code, notes, and snippets.

@3gwebtrain
Created November 18, 2021 13:29
Show Gist options
  • Save 3gwebtrain/5155dd42d698780621605921f8d02eb7 to your computer and use it in GitHub Desktop.
Save 3gwebtrain/5155dd42d698780621605921f8d02eb7 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
Machine({
initial:'inactive',
states:{
inactive:{
on:{
TOGGLE:'pending'
}
},
pending:{
on:{
SUCCESS:'active',
TOGGLE:'inactive'
}
},
active:{
on:{
TOGGLE:'inactive'
}
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment