From 858c489980cb3684ac783aded38875d35fb5178f Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Sun, 3 Jan 2021 09:18:42 +1100 Subject: [PATCH] Update useNetworkedState.js --- src/helpers/useNetworkedState.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/useNetworkedState.js b/src/helpers/useNetworkedState.js index 3878492..bb532d6 100644 --- a/src/helpers/useNetworkedState.js +++ b/src/helpers/useNetworkedState.js @@ -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); }