Skip to content

Instantly share code, notes, and snippets.

@pangratz
Last active March 11, 2020 15:23
Show Gist options
  • Save pangratz/808a745995167ee1c618e327f92ca977 to your computer and use it in GitHub Desktop.
Save pangratz/808a745995167ee1c618e327f92ca977 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 fetchMachine = Machine({
id: 'select',
initial: 'close',
context: {
},
states: {
close: {
on: {
ACTIVATE: 'open'
}
},
open: {
states: {
idle: {
ON: {
ARROW_LEFT: "open",
ARROW_DOWN: "open"
}
},
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment