Skip to content

Instantly share code, notes, and snippets.

@cellog
Last active November 9, 2019 00:50
Show Gist options
  • Save cellog/8aa4d88ff34b00883a3ee7761b7900b2 to your computer and use it in GitHub Desktop.
Save cellog/8aa4d88ff34b00883a3ee7761b7900b2 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: 'NextGen',
initial: 'start',
states: {
start: {
},
'list projects': {
},
'project selected': {
type: 'parallel',
states: {
Project: {
states: {
'editing Title': {
on: {
CHANGE: '.'
}
},
'editing Description': {
on: {
CHANGE: '.'
}
},
'Quick Search': {
on: {
FILTER: 'Filtered'
}
},
"Add User": {
},
"Filtered": {
}
},
on: {
EDIT_TITLE: '.editing Title',
EDIT_DESCRIPTION: '.editing Description',
SEARCH: '.Quick Search'
}
},
Datasets: {},
Tables: {},
'Data Objects': {},
}
},
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment