Skip to content

Commit 6f0889c

Browse files
authored
fix: restore old behavior in deprecation (#9364)
fix: restore old behavior in deprecation deprecate-relationship-remote-update-clearing-local-state
1 parent c9a0fbf commit 6f0889c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/graph/src/-private/operations/replace-related-record.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export default function replaceRelatedRecord(graph: Graph, op: ReplaceRelatedRec
165165
localState !== existingState &&
166166
relationship.definition.resetOnRemoteUpdate !== false
167167
) {
168-
relationship.localState = existingState;
168+
relationship.localState = remoteState;
169169

170170
deprecate(
171171
`EmberData is changing the default semantics of updates to the remote state of relationships.\n\nThe following local state was cleared from the <${

0 commit comments

Comments
 (0)