Last active
December 1, 2020 13:21
-
-
Save rob-gordon/c281eaf4013dd6a22aaece48d20f0d06 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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