diff --git a/packages/react-reconciler/src/ReactFiberCommitWork.new.js b/packages/react-reconciler/src/ReactFiberCommitWork.new.js index d01ef111ad8ce..f350c4429ed0d 100644 --- a/packages/react-reconciler/src/ReactFiberCommitWork.new.js +++ b/packages/react-reconciler/src/ReactFiberCommitWork.new.js @@ -2801,7 +2801,7 @@ function commitMutationEffectsOnFiber( } // Offscreen with manual mode manages visibility manually. - if (supportsMutation && finishedWork.memoizedProps.mode !== 'manual') { + if (supportsMutation && finishedWork.pendingProps.mode !== 'manual') { // TODO: This needs to run whenever there's an insertion or update // inside a hidden Offscreen tree. hideOrUnhideAllChildren(offscreenBoundary, isHidden); diff --git a/packages/react-reconciler/src/ReactFiberCommitWork.old.js b/packages/react-reconciler/src/ReactFiberCommitWork.old.js index 4774d57928b57..7ce40a99daa67 100644 --- a/packages/react-reconciler/src/ReactFiberCommitWork.old.js +++ b/packages/react-reconciler/src/ReactFiberCommitWork.old.js @@ -2801,7 +2801,7 @@ function commitMutationEffectsOnFiber( } // Offscreen with manual mode manages visibility manually. - if (supportsMutation && finishedWork.memoizedProps.mode !== 'manual') { + if (supportsMutation && finishedWork.pendingProps.mode !== 'manual') { // TODO: This needs to run whenever there's an insertion or update // inside a hidden Offscreen tree. hideOrUnhideAllChildren(offscreenBoundary, isHidden);