Last active
September 24, 2019 04:46
-
-
Save thiagodebastos/f70d06407785f56e1b2c39226de9a481 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) | |
const iccMachine = Machine({ | |
id: 'inlineCardCreate', | |
initial: 'hide', | |
context: { | |
}, | |
states: { | |
isIccGlobalMode: false, | |
isCardCreateEnabled: false, | |
isIccEnabled: false, | |
hide: { | |
on: { | |
TOGGLE: 'show' | |
} | |
}, | |
show: { | |
on: { | |
TOGGLE: 'hide', | |
} | |
} | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment