Skip to content

Commit

Permalink
Only treat updates to lazy as a new mount in legacy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhanlonii committed May 10, 2022
1 parent d20c3af commit fc210f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberBeginWork.new.js
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,7 @@ function mountIndeterminateComponent(
Component,
renderLanes,
) {
if (_current !== null) {
if (_current !== null && (workInProgress.mode & ConcurrentMode) === NoMode) {
// An indeterminate 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
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberBeginWork.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,7 @@ function mountIndeterminateComponent(
Component,
renderLanes,
) {
if (_current !== null) {
if (_current !== null && (workInProgress.mode & ConcurrentMode) === NoMode) {
// An indeterminate 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 fc210f8

Please sign in to comment.