royalsflush / learning_react

Taking a bit of time to go through Codecademy's React course (https://www.codecademy.com/enrolled/courses/react-101)
GNU General Public License v3.0
1 stars 0 forks source link

[Minesweeper] Timer isn't stopping when game ends #11

Closed royalsflush closed 1 week ago

royalsflush commented 1 week ago

I just fixed this with the help of Cursor AI (!!). This was a value being reset on re-render because it was a local variable. I gotta say, this is a pretty exciting development. This also means I can have a leaderboard very soon!