Created
September 26, 2019 20:39
-
-
Save stevekrouse/25d94d5cc3b06e58e8fe04e7018f6a03 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains hidden or 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": "root", "states": { "Screens": { "id": "Screens", "states": { "Logged-out": { "id": "Logged-out", "states": {}, "on": { "login": "#Logged-in" } }, "Logged-in": { "id": "Logged-in", "states": { "SDK": { "id": "SDK", "states": { "Loading-sdk": { "id": "Loading-sdk", "states": {}, "on": { "loaded-sdk": "#Loaded-sdk" } }, "Loaded-sdk": { "id": "Loaded-sdk", "states": { "Player": { "id": "Player", "states": { "Loading-player": { "id": "Loading-player", "states": {}, "on": { "loaded-player": "#Loaded-player" } }, "Loaded-player": { "id": "Loaded-player", "states": {}, "on": { "play-only-if-loaded-music": "#Playing" } } }, "initial": "Loading-player", "on": {} } }, "initial": "Player", "on": {} } }, "initial": "Loading-sdk", "on": {} }, "Music": { "id": "Music", "states": { "Loading-music": { "id": "Loading-music", "states": {}, "on": { "loaded-music": "#Loaded-music" } }, "Loaded-music": { "id": "Loaded-music", "states": {}, "on": { "play-only-if-loaded-player": "#Playing" } } }, "initial": "Loading-music", "on": {} } }, "parallel": true, "on": {} }, "Sound": { "id": "Sound", "states": { "Silent": { "id": "Silent", "states": {} }, "Playing": { "id": "Playing", "states": {} } }, "initial": "Silent", "on": {} } }, "initial": "Logged-out", "on": {} } }, "initial": "Screens", "on": {}}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment