[DevTools] Don't attach filtered IO to grandparent Suspense (#34916)
Sebastian "Sebbie" Silbermann committed
Oct 20, 2025 at 00:47 UTC
b485f7cf64118fc8729181f46fe5e2edd47bea43
1 file changed
+4
-1
packages/react-devtools-shared/src/backend/fiber/renderer.js
+4
-1
@@ -2862,7 +2862,10 @@ export function attach(
2862
let parentInstance = reconcilingParent;
2863
while (
2864
parentInstance.kind === FILTERED_FIBER_INSTANCE &&
2865
- parentInstance.parent !== null
2865
+ parentInstance.parent !== null &&
2866
+ // We can't move past the parent Suspense node.
2867
+ // The Suspense node holding async info must be a parent of the devtools instance (or the instance itself)
2868
+ parentInstance !== parentSuspenseNode.instance
2869
) {
2870
parentInstance = parentInstance.parent;
2871
}