Created
December 3, 2020 15:35
-
-
Save scottmessinger/d120f8a33997a18c687bcebe05d46dbb 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: '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