Skip to content

Instantly share code, notes, and snippets.

@Winwardo
Last active March 4, 2020 21:32
Show Gist options
  • Save Winwardo/f75bb6dadf1ec0b9391aa5334ee7ef5c to your computer and use it in GitHub Desktop.
Save Winwardo/f75bb6dadf1ec0b9391aa5334ee7ef5c to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
const viewOrder = Machine({
id: 'viewOrder',
initial: 'base',
context: {
},
states: {
base: {
on: {
REFUND:'refund',
RESEND_CONFIRMATION_EMAIL:'resendConfirmationEmail',
RESEND_REFUND_EMAIL:'resendRefundEmail'
}
},
refund:{
on:{
CLOSE:'base'
}
},
resendConfirmationEmail:{
on:{
CLOSE:'base'
}},
resendRefundEmail:{
on:{
CLOSE:'base'
}}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment