[DevTools] Don't attach filtered IO to grandparent Suspense (#34916)

This commit is contained in:
Sebastian "Sebbie" Silbermann 2025-10-20 00:47:27 +02:00 committed by GitHub
parent 2cfb221937
commit b485f7cf64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2862,7 +2862,10 @@ export function attach(
let parentInstance = reconcilingParent;
while (
parentInstance.kind === FILTERED_FIBER_INSTANCE &&
parentInstance.parent !== null
parentInstance.parent !== null &&
// We can't move past the parent Suspense node.
// The Suspense node holding async info must be a parent of the devtools instance (or the instance itself)
parentInstance !== parentSuspenseNode.instance
) {
parentInstance = parentInstance.parent;
}