Skip to content

Commit 5e65a61

Browse files
committed
Don't fallback to descendants when tracing updates
1 parent fb2a3d3 commit 5e65a61

File tree

1 file changed

+0
-12
lines changed
  • packages/react-devtools-shared/src/backend/fiber

1 file changed

+0
-12
lines changed

packages/react-devtools-shared/src/backend/fiber/renderer.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3419,18 +3419,6 @@ export function attach(
34193419
// I.e. we just restore them by undoing what we did above.
34203420
fiberInstance.firstChild = remainingReconcilingChildren;
34213421
remainingReconcilingChildren = null;
3422-
3423-
if (traceUpdatesEnabled) {
3424-
// If we're tracing updates and we've bailed out before reaching a host node,
3425-
// we should fall back to recursively marking the nearest host descendants for highlight.
3426-
if (traceNearestHostComponentUpdate) {
3427-
const hostInstances =
3428-
findAllCurrentHostInstances(fiberInstance);
3429-
hostInstances.forEach(hostInstance => {
3430-
traceUpdatesForNodes.add(hostInstance);
3431-
});
3432-
}
3433-
}
34343422
} else {
34353423
// If this fiber is filtered there might be changes to this set elsewhere so we have
34363424
// to visit each child to place it back in the set. We let the child bail out instead.

0 commit comments

Comments
 (0)