File tree Expand file tree Collapse file tree
packages/react-reconciler/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2215,8 +2215,7 @@ function commitMutationEffectsOnFiber(
22152215 const newState : OffscreenState | null = offscreenFiber . memoizedState ;
22162216 const isHidden = newState !== null ;
22172217 if ( isHidden ) {
2218- const current = offscreenFiber . alternate ;
2219- const wasHidden = current !== null && current . memoizedState !== null ;
2218+ const wasHidden = offscreenFiber . alternate !== null && offscreenFiber . alternate . memoizedState !== null ;
22202219 if ( ! wasHidden ) {
22212220 // TODO: Move to passive phase
22222221 markCommitTimeOfFallback ( ) ;
Original file line number Diff line number Diff line change @@ -2215,8 +2215,7 @@ function commitMutationEffectsOnFiber(
22152215 const newState : OffscreenState | null = offscreenFiber . memoizedState ;
22162216 const isHidden = newState !== null ;
22172217 if ( isHidden ) {
2218- const current = offscreenFiber . alternate ;
2219- const wasHidden = current !== null && current . memoizedState !== null ;
2218+ const wasHidden = offscreenFiber . alternate !== null && offscreenFiber . alternate . memoizedState !== null ;
22202219 if ( ! wasHidden ) {
22212220 // TODO: Move to passive phase
22222221 markCommitTimeOfFallback ( ) ;
You can’t perform that action at this time.
0 commit comments