File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2215,8 +2215,7 @@ function commitMutationEffectsOnFiber(
2215
2215
const newState : OffscreenState | null = offscreenFiber . memoizedState ;
2216
2216
const isHidden = newState !== null ;
2217
2217
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 ;
2220
2219
if ( ! wasHidden ) {
2221
2220
// TODO: Move to passive phase
2222
2221
markCommitTimeOfFallback ( ) ;
Original file line number Diff line number Diff line change @@ -2215,8 +2215,7 @@ function commitMutationEffectsOnFiber(
2215
2215
const newState : OffscreenState | null = offscreenFiber . memoizedState ;
2216
2216
const isHidden = newState !== null ;
2217
2217
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 ;
2220
2219
if ( ! wasHidden ) {
2221
2220
// TODO: Move to passive phase
2222
2221
markCommitTimeOfFallback ( ) ;
You can’t perform that action at this time.
0 commit comments