Created
June 18, 2020 05:22
-
-
Save epan/1e89d2e57f04db325069f9f0165824c1 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
// V3.2 | |
// Transitions, assuming no cancel, no fails, no loading (V3.2) | |
const simplifiedExistingMachine = Machine({ | |
id: 'simplifiedExisting', | |
initial: 'closed', | |
context: {}, | |
states: { | |
closed: { | |
on: { | |
OPEN: 'addressList' | |
} | |
}, | |
addressList: { | |
on: { | |
SELECT_EXISTING: 'closed', | |
ADD_NEW: 'addressEdit' | |
} | |
}, | |
addressEdit: { | |
on: { | |
SAVE: 'closed' | |
} | |
}, | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment