mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
[DevTools] Don't attach filtered IO to grandparent Suspense (#34916)
This commit is contained in:
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user