Fix timer shifting when player state is updated
This commit is contained in:
parent
63129dfa14
commit
a146495326
@ -64,7 +64,7 @@ function Party({ gameId, stream, partyStreams, onStreamStart, onStreamEnd }) {
|
||||
return () => {
|
||||
cancelAnimationFrame(request);
|
||||
};
|
||||
}, [playerState, setPlayerState]);
|
||||
}, [playerState.timer, setPlayerState]);
|
||||
|
||||
function handleNicknameChange(newNickname) {
|
||||
setPlayerState((prevState) => ({ ...prevState, nickname: newNickname }));
|
||||
|
Loading…
Reference in New Issue
Block a user