Skip to content

Instantly share code, notes, and snippets.

@Tarabyte
Created January 13, 2021 14:32
Show Gist options
  • Save Tarabyte/941412bfe22b02a22d0d2c94baad4206 to your computer and use it in GitHub Desktop.
Save Tarabyte/941412bfe22b02a22d0d2c94baad4206 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 AdminSurveyMachine = Machine({
id: 'adminSurvey',
initial: 'empty',
states: {
empty: {
on: {
select: 'selected'
}
},
selected: {
on: {
start: 'started'
}
},
started: {
on: {
stop: 'selected'
}
},
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment