Skip to content

Instantly share code, notes, and snippets.

@rahulsivalenka
Last active March 14, 2021 08:13
Show Gist options
  • Save rahulsivalenka/f4019c6d8c84f86de8e1fc4fd1883dec to your computer and use it in GitHub Desktop.
Save rahulsivalenka/f4019c6d8c84f86de8e1fc4fd1883dec to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const confirmationDialogStateMachine = Machine({
id: 'confirmationDialog',
initial: 'none',
states: {
none: {
on: {
OPEN_SAVE_CONFIRMATION: 'saveConfirmation',
OPEN_DELETE_CONFIRMATION: 'deleteConfirmation',
}
},
saveConfirmation: {
on: {
CLOSE: 'none',
}
},
deleteConfirmation: {
on: {
CLOSE: 'none',
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment