Skip to content

Instantly share code, notes, and snippets.

@rob-gordon
Last active December 1, 2020 13:21
Show Gist options
  • Save rob-gordon/c281eaf4013dd6a22aaece48d20f0d06 to your computer and use it in GitHub Desktop.
Save rob-gordon/c281eaf4013dd6a22aaece48d20f0d06 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 extension = Machine({id: 'Extension', initial: 'idle',
states: {
idle: {
on: {
USERCODE_REGISTERS: 'checkingVisibility'
}
},
checkingVisibility: {
on: {
USERCODE_PUBLIC: 'ready',
USERCODE_PRIVATE: 'validatingActor'
}
},
validatingActor: {
on: {
ACTOR_VALID: 'ready',
ACTOR_INVALID: 'idle'
}
},
ready: {}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment