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
const fetchMachine = Machine({ | |
id: "fetch", | |
initial: "idle", | |
context: { | |
retries: 0, | |
}, | |
states: { | |
idle: { | |
on: { | |
commit: "pre-commit hook", |
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
import "./styles.scss"; | |
import level1 from "./levels/level-1"; | |
import { createShakeAnimation } from "./shakeAnimation"; | |
const gridSize = parseInt( | |
getComputedStyle(document.body).getPropertyValue("--grid-size"), | |
10 | |
); | |
const tileSize = parseInt( | |
getComputedStyle(document.body).getPropertyValue("--tile-size"), |
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) |