Skip to content

Instantly share code, notes, and snippets.

@baldore
Last active April 11, 2023 17:10
Show Gist options
  • Save baldore/bb07c029acb01d897d11daebae583b80 to your computer and use it in GitHub Desktop.
Save baldore/bb07c029acb01d897d11daebae583b80 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)
function noAnvilSlug () {}
const fetchMachine = Machine({
id: 'Onboarding',
initial: 'notStarted',
context: {
retries: 0
},
states: {
notStarted: {
on: {
WORKER_SUBMITTED_I9_SECTION_ONE: [
{
cond: noAnvilSlug,
target: 'workerComplete'
},
{
target: 'I9SectionOneComplete'
}
]
}
},
I9SectionOneComplete: {},
workerComplete: {}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment