From 38bdda1ca61cef1b0abe8ca64dd8813fc7288d69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Markb=C3=A5ge?= Date: Thu, 6 Nov 2025 20:59:08 -0500 Subject: [PATCH] Don't skip content in visible offscreen trees for Gesture View Transitions (#35066) Follow up to #35063. I forgot there's another variant of this in the ApplyGesture path. --- packages/react-reconciler/src/ReactFiberApplyGesture.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-reconciler/src/ReactFiberApplyGesture.js b/packages/react-reconciler/src/ReactFiberApplyGesture.js index f7ec9aaeb2a..f18e33b57ba 100644 --- a/packages/react-reconciler/src/ReactFiberApplyGesture.js +++ b/packages/react-reconciler/src/ReactFiberApplyGesture.js @@ -146,7 +146,7 @@ function trackDeletedPairViewTransitions(deletion: Fiber): void { } let child = deletion.child; while (child !== null) { - if (child.tag === OffscreenComponent && child.memoizedState === null) { + if (child.tag === OffscreenComponent && child.memoizedState !== null) { // This tree was already hidden so we skip it. } else { if (