Skip to content

Conversation

@youaresoyoung
Copy link

Summary

Bug:
When "Hide DOM nodes" filter is enabled, updating a sibling component incorrectly highlights unrelated components that share a filtered parent.

Root Cause:
didFiberRender() only checks the PerformedWork flag but doesn't verify if the fiber is a mount vs update. When DevTools re-mounts components after their filtered parent changes, they have PerformedWork=true + alternate=null causing them to be incorrectly marked as "rendered".

Fix:
Add alternate check in didFiberRender(). If alternate === null, the fiber is a mount (not an update) and should not be highlighted in trace updates.


Before

before.mov

After

after.mov

@meta-cla meta-cla bot added the CLA Signed label Jan 23, 2026
@youaresoyoung youaresoyoung changed the title [DevTools] Trace Updates incorrectly highlights components when filtered parent re-mounts them [DevTools] Fix: Trace Updates incorrectly highlights components when filtered parent re-mounts them Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant