File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
packages/react-native/ReactCommon/react/renderer/mounting Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -280,15 +280,16 @@ static void updateMatchedPairSubtrees(
280
280
return ;
281
281
}
282
282
283
+ // TODO(T217775046): find a test case for this branch.
284
+ auto oldCullingContextCopy =
285
+ oldCullingContext.adjustCullingContextIfNeeded (oldPair);
286
+ auto newCullingContextCopy =
287
+ newCullingContext.adjustCullingContextIfNeeded (newPair);
288
+
283
289
// Update subtrees if View is not flattened, and if node addresses
284
290
// are not equal
285
291
if (oldPair.shadowNode != newPair.shadowNode ||
286
- oldCullingContext != newCullingContext) {
287
- auto oldCullingContextCopy =
288
- oldCullingContext.adjustCullingContextIfNeeded (oldPair);
289
- auto newCullingContextCopy =
290
- newCullingContext.adjustCullingContextIfNeeded (newPair);
291
-
292
+ oldCullingContextCopy != newCullingContextCopy) {
292
293
ViewNodePairScope innerScope{};
293
294
auto oldGrandChildPairs = sliceChildShadowNodeViewPairsFromViewNodePair (
294
295
oldPair, innerScope, false , oldCullingContextCopy);
You can’t perform that action at this time.
0 commit comments