Update useNetworkedState.js
This commit is contained in:
parent
815ca6bbe1
commit
858c489980
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user