Skip to content

Instantly share code, notes, and snippets.

@natepappenhagen
Created October 13, 2021 21:30
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 natepappenhagen/ce854b74e2e1334596e91780666c9416 to your computer and use it in GitHub Desktop.
Save natepappenhagen/ce854b74e2e1334596e91780666c9416 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":"root",
"states":{
"Submissions Flow":{
"id":"Submissions Flow",
"states":{
"Submissions Home Page":{
"id":"Submissions Home Page",
"states":{
},
"on":{
"Create Quote":"#Select Customer Modal"
}
},
"Select Customer Modal":{
"id":"Select Customer Modal",
"states":{
"Search Customer":{
"id":"Search Customer",
"states":{
},
"on":{
"Select Customer":"#Enabled Create Quote Button"
}
},
"Enabled Create Quote Button":{
"id":"Enabled Create Quote Button",
"states":{
},
"on":{
"Create Quote":"#Create Quote Flow",
"Seach Again":"#Search Customer"
}
}
},
"initial":"Search Customer",
"on":{
"Cancel":"#Submissions Home Page",
"Import Customer":"#Import Customer Flow",
"New Customer":"#New Customer Flow"
}
}
},
"initial":"Submissions Home Page",
"on":{
}
},
"Create Quote Flow":{
"id":"Create Quote Flow",
"states":{
}
},
"New Customer Flow":{
"id":"New Customer Flow",
"states":{
}
},
"Import Customer Flow":{
"id":"Import Customer Flow",
"states":{
}
}
},
"initial":"Submissions Flow",
"on":{
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment