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

Should not automatically restart when game is over #12

Description

@petertriho
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions