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(
280280 return ;
281281 }
282282
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+
283289 // Update subtrees if View is not flattened, and if node addresses
284290 // are not equal
285291 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) {
292293 ViewNodePairScope innerScope{};
293294 auto oldGrandChildPairs = sliceChildShadowNodeViewPairsFromViewNodePair (
294295 oldPair, innerScope, false , oldCullingContextCopy);
You can’t perform that action at this time.
0 commit comments