mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
[DevTools] Stop recording reorders in disconnected subtrees (#34464)
This commit is contained in:
parent
67415c8c4a
commit
7fc888dde2
|
|
@ -4310,7 +4310,9 @@ export function attach(
|
||||||
virtualLevel + 1,
|
virtualLevel + 1,
|
||||||
);
|
);
|
||||||
if ((updateFlags & ShouldResetChildren) !== NoUpdate) {
|
if ((updateFlags & ShouldResetChildren) !== NoUpdate) {
|
||||||
recordResetChildren(virtualInstance);
|
if (!isInDisconnectedSubtree) {
|
||||||
|
recordResetChildren(virtualInstance);
|
||||||
|
}
|
||||||
updateFlags &= ~ShouldResetChildren;
|
updateFlags &= ~ShouldResetChildren;
|
||||||
}
|
}
|
||||||
removePreviousSuspendedBy(
|
removePreviousSuspendedBy(
|
||||||
|
|
@ -5097,7 +5099,9 @@ export function attach(
|
||||||
// We need to crawl the subtree for closest non-filtered Fibers
|
// We need to crawl the subtree for closest non-filtered Fibers
|
||||||
// so that we can display them in a flat children set.
|
// so that we can display them in a flat children set.
|
||||||
if (fiberInstance !== null && fiberInstance.kind === FIBER_INSTANCE) {
|
if (fiberInstance !== null && fiberInstance.kind === FIBER_INSTANCE) {
|
||||||
recordResetChildren(fiberInstance);
|
if (!nextIsHidden && !isInDisconnectedSubtree) {
|
||||||
|
recordResetChildren(fiberInstance);
|
||||||
|
}
|
||||||
|
|
||||||
// We've handled the child order change for this Fiber.
|
// We've handled the child order change for this Fiber.
|
||||||
// Since it's included, there's no need to invalidate parent child order.
|
// Since it's included, there's no need to invalidate parent child order.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user