Skip to content

Commit

Permalink
Remove current/child check for hydration and rely on the root flag in…
Browse files Browse the repository at this point in the history
…stead
  • Loading branch information
sebmarkbage committed Sep 10, 2019
1 parent 19920ee commit 6acafc3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/react-reconciler/src/ReactFiberBeginWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6acafc3

Please sign in to comment.