Skip to content

Commit 2e7c732

Browse files
committed
Fix hierarchy that async info is attached to
As an alternative, we'd have to move the `parentSuspenseNode` pointer after we moved the `parentInstance` pointer
1 parent ee3ceca commit 2e7c732

File tree

1 file changed

+4
-1
lines changed
  • packages/react-devtools-shared/src/backend/fiber

1 file changed

+4
-1
lines changed

packages/react-devtools-shared/src/backend/fiber/renderer.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2904,7 +2904,10 @@ export function attach(
29042904
let parentInstance = reconcilingParent;
29052905
while (
29062906
parentInstance.kind === FILTERED_FIBER_INSTANCE &&
2907-
parentInstance.parent !== null
2907+
parentInstance.parent !== null &&
2908+
// We can't move past the parent Suspense node.
2909+
// The Suspense node holding async info must be a parent of the devtools instance (or the instance itself)
2910+
parentInstance !== parentSuspenseNode.instance
29082911
) {
29092912
parentInstance = parentInstance.parent;
29102913
}

0 commit comments

Comments
 (0)