Last active
March 4, 2020 21:32
-
-
Save Winwardo/f75bb6dadf1ec0b9391aa5334ee7ef5c 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 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