pmndrs / racing-game

🏎 Open source racing game developed by everyone willing
https://racing.pmnd.rs/
MIT License
2.13k stars 176 forks source link

Move checkpoint data from mutation to store #171

Closed bjornstar closed 3 years ago

bjornstar commented 3 years ago

The data doesn't change frequently and we can do it with 2 properties instead of 4.

Having the setTimeout as an effect of the component also means it can clean itself up.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pmndrs/racing-game/97J2zVPVXt8LF3a2AcwRmQF7moN2
✅ Preview: https://racing-game-git-fork-bjornstar-move-timers-pmndrs.vercel.app