setGameState(IN_ROUND)}
/>
case POST_GAME:
return (
setGameStateAnd(PRE_GAME, { gameId: null, joined: false })}
/>
);
case ERROR:
// TODO - would be nice to hook this into the sub-components, maybe with a HOC?
return Application encountered unrecoverable error, please refresh the page.
default:
setGameState(ERROR);
return Application state is inconsistent, please refresh and rejoin your previous game.
}
}
export default Game;