Created
October 13, 2021 21:30
-
-
Save natepappenhagen/ce854b74e2e1334596e91780666c9416 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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