You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am just playing it a bit and on restart of the game, no matter if won or lost, the game doesn't work, it stays at the first guess, nothing happens when you press enter for the first time and the second time, the alert triggers to tell you, that you already guessed that.
Everything seems to be reset properly, but for the new attempt, there is no new word fetched from the /words.json file. I guess the empty dependendy array from the first useEffect does not trigger a rerender upon resetting the ui.
Putting the userSolution in that first useEffect Dependency Array fixes the problem, but it is actually not required there, so maybe there is a better solution.
The text was updated successfully, but these errors were encountered:
I am just playing it a bit and on restart of the game, no matter if won or lost, the game doesn't work, it stays at the first guess, nothing happens when you press enter for the first time and the second time, the alert triggers to tell you, that you already guessed that.
Everything seems to be reset properly, but for the new attempt, there is no new word fetched from the /words.json file. I guess the empty dependendy array from the first useEffect does not trigger a rerender upon resetting the ui.
Putting the userSolution in that first useEffect Dependency Array fixes the problem, but it is actually not required there, so maybe there is a better solution.
The text was updated successfully, but these errors were encountered: