Created
June 18, 2020 17:28
-
-
Save epan/f50ab53b93fdf868c9ccadea7d37590a 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', | |
CANCEL: 'addressList' | |
} | |
}, | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment