Skip to content

Commit 35b1481

Browse files
committed
Clear firstChild of SuspenseNode and re-add it as we go
1 parent 11604af commit 35b1481

File tree

1 file changed

+5
-3
lines changed
  • packages/react-devtools-shared/src/backend/fiber

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3757,10 +3757,12 @@ export function attach(
37573757
fiberInstance.firstChild = null;
37583758
fiberInstance.suspendedBy = null;
37593759
3760-
if (fiberInstance.suspenseNode !== null) {
3761-
reconcilingParentSuspenseNode = fiberInstance.suspenseNode;
3760+
const suspenseNode = fiberInstance.suspenseNode;
3761+
if (suspenseNode !== null) {
3762+
reconcilingParentSuspenseNode = suspenseNode;
37623763
previouslyReconciledSiblingSuspenseNode = null;
3763-
remainingReconcilingChildrenSuspenseNodes = null;
3764+
remainingReconcilingChildrenSuspenseNodes = suspenseNode.firstChild;
3765+
suspenseNode.firstChild = null;
37643766
}
37653767
}
37663768
try {

0 commit comments

Comments
 (0)