Skip to content

Commit

Permalink
Remove unnecessary flag check (#24284)
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-lx authored Apr 6, 2022
1 parent af73043 commit ece5295
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 @@ -1399,7 +1399,7 @@ function updateHostRoot(current, workInProgress, renderLanes) {
} else {
// The outermost shell has not hydrated yet. Start hydrating.
enterHydrationState(workInProgress);
if (enableUseMutableSource && supportsHydration) {
if (enableUseMutableSource) {
const mutableSourceEagerHydrationData =
root.mutableSourceEagerHydrationData;
if (mutableSourceEagerHydrationData != null) {
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 @@ -1399,7 +1399,7 @@ function updateHostRoot(current, workInProgress, renderLanes) {
} else {
// The outermost shell has not hydrated yet. Start hydrating.
enterHydrationState(workInProgress);
if (enableUseMutableSource && supportsHydration) {
if (enableUseMutableSource) {
const mutableSourceEagerHydrationData =
root.mutableSourceEagerHydrationData;
if (mutableSourceEagerHydrationData != null) {
Expand Down

0 comments on commit ece5295

Please sign in to comment.