Skip to content

Instantly share code, notes, and snippets.

@gabrocheleau
Created July 23, 2020 15:54
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 gabrocheleau/6cf7dde673dfab6709468bd26d6ae044 to your computer and use it in GitHub Desktop.
Save gabrocheleau/6cf7dde673dfab6709468bd26d6ae044 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const walletConnectionMachine = Machine({
id: 'walletConnection',
initial: 'idle',
states: {
idle: {
on: {
SUBMIT: 'loading',
},
},
loading: { on: { CONNECTED: 'connected', ERROR: 'error' } },
connected: {
on: {
DISCONNECTED: 'error',
},
},
error: {
on: {
RETRY: 'loading',
},
},
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment