From 120d397fcc02a051ec4479bb89f1e2bb5e4b2624 Mon Sep 17 00:00:00 2001 From: primus11 <1196764+primus11@users.noreply.github.com> Date: Thu, 2 Mar 2023 07:57:31 +0100 Subject: [PATCH] changed shouldUpdateRecord condition since it makes more sense --- src/sync/impl/helpers.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sync/impl/helpers.js b/src/sync/impl/helpers.js index 2967219a9..9f901f623 100644 --- a/src/sync/impl/helpers.js +++ b/src/sync/impl/helpers.js @@ -67,7 +67,9 @@ export function requiresUpdate( shouldUpdateRecord?: SyncShouldUpdateRecord, ): boolean { if (shouldUpdateRecord) { - return shouldUpdateRecord(collection.table, local, dirtyRemote) + if (!shouldUpdateRecord(collection.table, local, dirtyRemote)) { + return false; + } } if (local._status !== 'synced') {