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 and rickhanlonii committed Apr 14, 2022
1 parent 9a2f8c9 commit f24e7e4
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 f24e7e4

Please sign in to comment.