Skip to content

Commit 38bdda1

Browse files
authored
Don't skip content in visible offscreen trees for Gesture View Transitions (facebook#35066)
Follow up to facebook#35063. I forgot there's another variant of this in the ApplyGesture path.
1 parent a44e750 commit 38bdda1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-reconciler/src/ReactFiberApplyGesture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function trackDeletedPairViewTransitions(deletion: Fiber): void {
146146
}
147147
let child = deletion.child;
148148
while (child !== null) {
149-
if (child.tag === OffscreenComponent && child.memoizedState === null) {
149+
if (child.tag === OffscreenComponent && child.memoizedState !== null) {
150150
// This tree was already hidden so we skip it.
151151
} else {
152152
if (

0 commit comments

Comments
 (0)