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
const tahoeTravelMachine = Machine({ | |
id: "tahoe-travel", | |
initial: "walking", | |
states: { | |
walking: { | |
on: { | |
THUMBS_UP: "hitchhiking", | |
ARRIVED: "arrived" | |
} | |
}, |
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
const tahoeTravelMachine = Machine({ | |
id: "tahoe-travel", | |
initial: "walking", | |
states: { | |
walking: { | |
on: { | |
THUMBS_UP: "hitchhiking", | |
ARRIVED: "arrived" | |
} | |
}, |
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
const menuMachine = Machine({ | |
id: 'menu', | |
initial: 'collapsed', | |
states: { | |
expanded: { | |
on: { | |
COLLAPSE: 'collapsed' | |
} | |
}, | |
collapsed: { |
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
const cocktailMachine = Machine({ | |
id: 'cocktail', | |
initial: 'empty', | |
context: { | |
ingredients: [] | |
}, | |
states: { | |
empty: { | |
on: { | |
FIRST_INGREDIENT: { |
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
const fetchMachine = Machine({ | |
id: 'fetch', | |
initial: 'idle', | |
context: { | |
retries: 0 | |
}, | |
states: { | |
idle: { | |
on: { | |
FETCH: 'loading' |
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
const tahoeTravelMachine = Machine({ | |
id: "ML-to-Live", | |
initial: "analysis", | |
states: { | |
analysis: { | |
on: { | |
COMPLETE: "data" | |
} | |
}, | |
data: { |
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
query { | |
allLifts { | |
id | |
name | |
} | |
} |
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
{ | |
"zenMode.hideLineNumbers": false, | |
"workbench.colorTheme": "Night Owl", | |
"editor.quickSuggestions": { | |
"other": false, | |
"comments": false, | |
"strings": false | |
}, | |
"editor.wordBasedSuggestions": false, | |
"editor.suggestOnTriggerCharacters": false, |
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
// performers.json | |
[ | |
{ "id": "rc5HXuXIb", "name": "Beyonce" }, | |
{ "id": "gXMuonvEqD", "name": "Enya" } | |
] | |
// songs.json | |
[ | |
{ | |
"id": "M8JsFEqv5z", |
NewerOlder