Remove unnecessary flag check (#24284)
zhoulixiang committed
Apr 7, 2022 at 00:42 UTC
ece5295e5af992d30256f26ca428abdad514f862
2 files changed
+2
-2
packages/react-reconciler/src/ReactFiberBeginWork.new.js
+1
-1
@@ -1399,7 +1399,7 @@ function updateHostRoot(current, workInProgress, renderLanes) {
1399
} else {
1400
// The outermost shell has not hydrated yet. Start hydrating.
1401
enterHydrationState(workInProgress);
1402
- if (enableUseMutableSource && supportsHydration) {
1402
+ if (enableUseMutableSource) {
1403
const mutableSourceEagerHydrationData =
1404
root.mutableSourceEagerHydrationData;
1405
if (mutableSourceEagerHydrationData != null) {
packages/react-reconciler/src/ReactFiberBeginWork.old.js
+1
-1
@@ -1399,7 +1399,7 @@ function updateHostRoot(current, workInProgress, renderLanes) {
1399
} else {
1400
// The outermost shell has not hydrated yet. Start hydrating.
1401
enterHydrationState(workInProgress);
1402
- if (enableUseMutableSource && supportsHydration) {
1402
+ if (enableUseMutableSource) {
1403
const mutableSourceEagerHydrationData =
1404
root.mutableSourceEagerHydrationData;
1405
if (mutableSourceEagerHydrationData != null) {