Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sammy-SC committed Dec 2, 2022
1 parent d9cadc3 commit 469eaf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/react-reconciler/src/ReactFiberBeginWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,8 @@ function updateOffscreenComponent(
) {
const nextProps: OffscreenProps = workInProgress.pendingProps;
const nextChildren = nextProps.children;
const isPendingDetached = (workInProgress.stateNode._pendingVisibility & OffscreenDetached) !== 0;
const isPendingDetached =
(workInProgress.stateNode._pendingVisibility & OffscreenDetached) !== 0;

const prevState: OffscreenState | null =
current !== null ? current.memoizedState : null;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberCommitWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -2883,7 +2883,7 @@ function commitMutationEffectsOnFiber(
// to support batching of `attach` and `detach` calls.
finishedWork.stateNode._visibility &= ~OffscreenDetached;
finishedWork.stateNode._visibility |=
finishedWork.stateNode._pendingVisibility & OffscreenDetached;
finishedWork.stateNode._pendingVisibility & OffscreenDetached;

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

0 comments on commit 469eaf7

Please sign in to comment.