Update useNetworkedState.js

This commit is contained in:
Mitchell McCaffrey 2021-01-03 09:18:42 +11:00
parent 815ca6bbe1
commit 858c489980

View File

@ -42,7 +42,7 @@ function useNetworkedState(
function handleSocketEvent(data) {
const uncommittedChanges = uncommittedChangesRef.current || [];
for (let change of uncommittedChanges) {
applyChange(data, undefined, change);
applyChange(data, true, change);
}
_setState(data);
}