Skip to content

Commit 469eaf7

Browse files
committed
prettier
1 parent d9cadc3 commit 469eaf7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/react-reconciler/src/ReactFiberBeginWork.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,8 @@ function updateOffscreenComponent(
685685
) {
686686
const nextProps: OffscreenProps = workInProgress.pendingProps;
687687
const nextChildren = nextProps.children;
688-
const isPendingDetached = (workInProgress.stateNode._pendingVisibility & OffscreenDetached) !== 0;
688+
const isPendingDetached =
689+
(workInProgress.stateNode._pendingVisibility & OffscreenDetached) !== 0;
689690

690691
const prevState: OffscreenState | null =
691692
current !== null ? current.memoizedState : null;

packages/react-reconciler/src/ReactFiberCommitWork.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2883,7 +2883,7 @@ function commitMutationEffectsOnFiber(
28832883
// to support batching of `attach` and `detach` calls.
28842884
finishedWork.stateNode._visibility &= ~OffscreenDetached;
28852885
finishedWork.stateNode._visibility |=
2886-
finishedWork.stateNode._pendingVisibility & OffscreenDetached;
2886+
finishedWork.stateNode._pendingVisibility & OffscreenDetached;
28872887

28882888
if (flags & Visibility) {
28892889
const offscreenInstance: OffscreenInstance = finishedWork.stateNode;

0 commit comments

Comments
 (0)