Skip to content

Instantly share code, notes, and snippets.

@scottmessinger
Created December 3, 2020 15:35
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 scottmessinger/d120f8a33997a18c687bcebe05d46dbb to your computer and use it in GitHub Desktop.
Save scottmessinger/d120f8a33997a18c687bcebe05d46dbb 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: 'signs',
type: 'parallel',
states: {
screen: {
initial: "justEmail",
states: {
justEmail: {},
signIn: {},
signUp: {},
accountInfo: {},
aboutPlanbookInfo: {},
planbookTitle: {}
}
},
email: {
initial: "initial",
states: {
initial: {},
isValid: {},
isTyping: {},
isInvalid: {},
}
},
password: {
initial: "initial",
states: {
initial: {},
doesNotMatch: {},
}
},
genericError: {
initial: "none",
states: {
none: {},
present: {}
}
},
isSigningIn: {
initial: "nope",
states: {
nope: {},
yes: {}
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment