Skip to content

Instantly share code, notes, and snippets.

@cellog
Last active January 27, 2020 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cellog/541bd9276691ce1a9e6b0ef76648f862 to your computer and use it in GitHub Desktop.
Save cellog/541bd9276691ce1a9e6b0ef76648f862 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 projectId = '0';
const fetchMachine = Machine({
id: "filter modal",
initial: "initial",
context: {
projectId,
selectedTab: {},
errors: [],
},
states: {
initial: {
on: {
"Select Tab": {
target: "",
actions: assign({
selectedTab: (_context, event) => event.tab,
}),
},
},
},
errors: {},
readyForSearch: {},
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment