Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Should not automatically restart when game is over #12

Open
petertriho opened this issue Feb 25, 2021 · 0 comments
Open

Should not automatically restart when game is over #12

petertriho opened this issue Feb 25, 2021 · 0 comments

Comments

@petertriho
Copy link
Contributor

useEffect(() => {
        if (tileSize && !gameState.started) resetGame(false);
    }, [gameState.started, resetGame, tileSize])

This block of code is causing game to restart whe ngame is over, but removing it results in continuous rerenders. Need to look into why this is the case

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant