Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/react-devtools-shared/src/backend/fiber/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4310,7 +4310,9 @@ export function attach(
virtualLevel + 1,
);
if ((updateFlags & ShouldResetChildren) !== NoUpdate) {
recordResetChildren(virtualInstance);
if (!isInDisconnectedSubtree) {
recordResetChildren(virtualInstance);
}
updateFlags &= ~ShouldResetChildren;
}
removePreviousSuspendedBy(
Expand Down Expand Up @@ -5097,7 +5099,9 @@ export function attach(
// We need to crawl the subtree for closest non-filtered Fibers
// so that we can display them in a flat children set.
if (fiberInstance !== null && fiberInstance.kind === FIBER_INSTANCE) {
recordResetChildren(fiberInstance);
if (!nextIsHidden && !isInDisconnectedSubtree) {
recordResetChildren(fiberInstance);
}

// We've handled the child order change for this Fiber.
// Since it's included, there's no need to invalidate parent child order.
Expand Down
Loading