File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2880,7 +2880,8 @@ function commitMutationEffectsOnFiber(
28802880 }
28812881
28822882 if ( isHidden ) {
2883- if ( current !== null && current . memoizedState === null ) {
2883+ // Check if this is an update, and the tree was previously visible.
2884+ if ( current !== null && ! wasHidden ) {
28842885 if ( ( offscreenBoundary . mode & ConcurrentMode ) !== NoMode ) {
28852886 // Disappear the layout effects of all the children
28862887 recursivelyTraverseDisappearLayoutEffects ( offscreenBoundary ) ;
Original file line number Diff line number Diff line change @@ -2880,7 +2880,8 @@ function commitMutationEffectsOnFiber(
28802880 }
28812881
28822882 if ( isHidden ) {
2883- if ( current !== null && current . memoizedState === null ) {
2883+ // Check if this is an update, and the tree was previously visible.
2884+ if ( current !== null && ! wasHidden ) {
28842885 if ( ( offscreenBoundary . mode & ConcurrentMode ) !== NoMode ) {
28852886 // Disappear the layout effects of all the children
28862887 recursivelyTraverseDisappearLayoutEffects ( offscreenBoundary ) ;
You can’t perform that action at this time.
0 commit comments