Skip to content

Commit

Permalink
Flip order back
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhanlonii committed May 10, 2022
1 parent 1fc45f3 commit 1274145
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/react-reconciler/src/ReactFiberBeginWork.new.js
Original file line number Diff line number Diff line change
Expand Up @@ -3342,8 +3342,8 @@ export function checkIfWorkInProgressReceivedUpdate() {
}

function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) {
if (current !== null) {
if ((workInProgress.mode & ConcurrentMode) === NoMode) {
if ((workInProgress.mode & ConcurrentMode) === NoMode) {
if (current !== null) {
// A lazy component only mounts if it suspended inside a non-
// concurrent tree, in an inconsistent state. We want to treat it like
// a new mount, even though an empty version of it already committed.
Expand Down
4 changes: 2 additions & 2 deletions packages/react-reconciler/src/ReactFiberBeginWork.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -3342,8 +3342,8 @@ export function checkIfWorkInProgressReceivedUpdate() {
}

function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) {
if (current !== null) {
if ((workInProgress.mode & ConcurrentMode) === NoMode) {
if ((workInProgress.mode & ConcurrentMode) === NoMode) {
if (current !== null) {
// A lazy component only mounts if it suspended inside a non-
// concurrent tree, in an inconsistent state. We want to treat it like
// a new mount, even though an empty version of it already committed.
Expand Down

0 comments on commit 1274145

Please sign in to comment.