Skip to content

Commit 120d397

Browse files
committed
changed shouldUpdateRecord condition since it makes more sense
1 parent 6470faf commit 120d397

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sync/impl/helpers.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ export function requiresUpdate<T: Model>(
6767
shouldUpdateRecord?: SyncShouldUpdateRecord,
6868
): boolean {
6969
if (shouldUpdateRecord) {
70-
return shouldUpdateRecord(collection.table, local, dirtyRemote)
70+
if (!shouldUpdateRecord(collection.table, local, dirtyRemote)) {
71+
return false;
72+
}
7173
}
7274

7375
if (local._status !== 'synced') {

0 commit comments

Comments
 (0)