Skip to content

Commit

Permalink
Remove unnecessary flag check (facebook#24284)
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-lx authored and zhengjitf committed Apr 15, 2022
1 parent d88fea5 commit 8451666
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 8451666

Please sign in to comment.