octokatherine / word-master

A Mastermind-like word guessing game
MIT License
381 stars 240 forks source link

persist game state in localstorage #48

Closed teleshoes closed 2 years ago

teleshoes commented 2 years ago

mostly just hook swap, useState => useLocalStorage seems to work. needs testing.

fixes #47

teleshoes commented 2 years ago

ah, i left playAgain commits in. i will rebase after that pr is merged or closed

teleshoes commented 2 years ago

a nice plus of persisting is that refreshing re-opens the EndGame popup with streak info

teleshoes commented 2 years ago

ok, rebased. i tested it some more yday, should be good