Skip to content

Instantly share code, notes, and snippets.

@svagi
Created September 30, 2020 07:18
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 svagi/f0c5a6600a8019c62b77b17c9f7a1d28 to your computer and use it in GitHub Desktop.
Save svagi/f0c5a6600a8019c62b77b17c9f7a1d28 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const routerMachine = Machine({
id: "routerMachine",
initial: "topics",
states: {
topics: {
on: {
next: "dashboard",
},
},
dashboard: {
id: "dashboard",
on: {
continue: "dataQuality",
manageTopics: "topics",
editPipeline: "pipelines",
},
},
pipelines: {
initial: "mapping",
states: {
mapping: {
on: {
close: "#dashboard",
back: "#dashboard",
next: "filters",
},
},
filters: {
on: {
close: "#dashboard",
back: "mapping",
next: "schedule",
},
},
schedule: {
on: {
close: "#dashboard",
back: "filters",
next: "review",
},
},
review: {
on: {
close: "#dashboard",
back: "schedule",
next: "#dashboard",
},
},
},
},
dataQuality: {
on: {
run: "dataQuality",
continue: "installation",
back: "dashboard",
},
},
installation: {
on: {
install: "installation",
backToDataQuality: "dataQuality",
backToDashboard: "dashboard",
},
},
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment