Skip to content

Instantly share code, notes, and snippets.

@YajanaRao
Created October 1, 2021 17:43
Show Gist options
  • Save YajanaRao/546497cd21d0acdce40f656b78f5afe4 to your computer and use it in GitHub Desktop.
Save YajanaRao/546497cd21d0acdce40f656b78f5afe4 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: 'query',
initial: 'START',
states: {
START: {
on: {
SELECT: 'COLUMNS'
}
},
COLUMNS: {
on: {
MORE: 'COLUMNS',
FROM: 'TABLES'
}
},
TABLES: {
on: {
WHERE: 'COLUMNS'
},
},
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment