From 0dfb00bd07fcad34eb6bd815c7cf0576aa3691e9 Mon Sep 17 00:00:00 2001 From: Brad Jones Date: Fri, 17 Jun 2022 18:08:49 -0600 Subject: [PATCH] Also update meta on relationships when merging changes --- .../src/operators/async-inverse-transform-operators.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/@orbit/record-cache/src/operators/async-inverse-transform-operators.ts b/packages/@orbit/record-cache/src/operators/async-inverse-transform-operators.ts index 32a9a355..23c6cd58 100644 --- a/packages/@orbit/record-cache/src/operators/async-inverse-transform-operators.ts +++ b/packages/@orbit/record-cache/src/operators/async-inverse-transform-operators.ts @@ -104,13 +104,15 @@ export const AsyncInverseTransformOperators: Dict currentData, data ); + currentData = data; } else { relationshipChanged = true; currentData = []; } } else { if (currentData) { - relationshipChanged = !equalRecordIdentities(currentData, data); + relationshipChanged = !equalRecordIdentities(currentData, data) || !!data?.meta; + currentData = data; } else { relationshipChanged = true; currentData = null;