Skip to content

Instantly share code, notes, and snippets.

@tylerzey
Created February 2, 2022 15:18
Show Gist options
  • Save tylerzey/6c55b0054132b8ff5815dba4afb06125 to your computer and use it in GitHub Desktop.
Save tylerzey/6c55b0054132b8ff5815dba4afb06125 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine({
id: 'fetch',
initial: 'c9e177d3-43cb-45b4-93ab-34371b0d317f',
context: {
retries: 0
},
states: {
"c9e177d3-43cb-45b4-93ab-34371b0d317f": {
"__typename": "XState",
"on": {
"NEXT": "f0bf07fc-ef93-442b-97c0-b2e4c99d213b"
},
"type": null,
"data": {
"isStart": true
}
}, "f0bf07fc-ef93-442b-97c0-b2e4c99d213b": {
"__typename": "XState",
"on": {
"NEXT": "104dfa73-9e53-447d-a9c0-90a60c946272"
},
"type": null,
"data": {
"moduleId": "9da78ce3-cfad-4d53-8005-0a09e26efd3d"
}
},
"104dfa73-9e53-447d-a9c0-90a60c946272": {
"__typename": "XState",
"on": null,
"type": "final",
"data": {
"isEnd": true
}
},
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment