Last active
January 5, 2021 01:22
-
-
Save ek/d8542f263845029a975222a88a21755c to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains hidden or 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 ftuMachine = Machine({ | |
id: 'QBO FTU', | |
initial: '1', | |
context: { | |
retries: 0 | |
}, | |
states: { | |
1: { | |
meta: { | |
page: 'page_1' | |
}, | |
on: { | |
NEXT: '2' | |
} | |
}, | |
2: { | |
meta: { | |
page: 'page_2' | |
}, | |
on: { | |
BACK: '1', | |
NEXT: '3' | |
} | |
}, | |
3: { | |
meta: { | |
page: 'page_3' | |
}, | |
on: { | |
BACK: '2', | |
NEXT: '4' | |
} | |
}, | |
4: { | |
meta: { | |
page: 'page_4' | |
}, | |
on: { | |
BACK: '3' | |
} | |
}, | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment