From 6acafc3243029f366f1f3b92265c2c4f0c0a3724 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Tue, 10 Sep 2019 14:05:45 -0700 Subject: [PATCH] Remove current/child check for hydration and rely on the root flag instead --- packages/react-reconciler/src/ReactFiberBeginWork.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/react-reconciler/src/ReactFiberBeginWork.js b/packages/react-reconciler/src/ReactFiberBeginWork.js index 2918f5c95802c..eb4234d4aef07 100644 --- a/packages/react-reconciler/src/ReactFiberBeginWork.js +++ b/packages/react-reconciler/src/ReactFiberBeginWork.js @@ -937,11 +937,7 @@ function updateHostRoot(current, workInProgress, renderExpirationTime) { ); } const root: FiberRoot = workInProgress.stateNode; - if ( - (current === null || current.child === null) && - root.hydrate && - enterHydrationState(workInProgress) - ) { + if (root.hydrate && enterHydrationState(workInProgress)) { // If we don't have any current children this might be the first pass. // We always try to hydrate. If this isn't a hydration pass there won't // be any children to hydrate which is effectively the same thing as