Last active
April 11, 2023 17:10
-
-
Save baldore/bb07c029acb01d897d11daebae583b80 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) | |
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