mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
[DevTools] Don't attach filtered IO to grandparent Suspense (#34916)
This commit is contained in:
committed by
GitHub
parent
2cfb221937
commit
b485f7cf64
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user