Skip to content

Commit 8d9a9ba

Browse files
committedMar 13, 2025
Does this help also?
1 parent 19de81f commit 8d9a9ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎packages/graph/src/-private/operations/replace-related-records.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ function replaceRelatedRecordsRemote(graph: Graph, op: ReplaceRelatedRecordsOper
271271
// because we want to clear local changes even if
272272
// no change has occurred to preserve the legacy behavior
273273
relationship.definition.kind === 'hasMany' &&
274-
relationship.definition.resetOnRemoteUpdate !== false
274+
relationship.definition.resetOnRemoteUpdate !== false &&
275+
diff.changed
275276
) {
276277
const deprecationInfo: {
277278
removals: StableRecordIdentifier[];

0 commit comments

Comments
 (0)