From af8c978777e90a07ff6e9f6e3af51d6e7d1be3a2 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Mon, 20 Sep 2021 22:12:30 +0200 Subject: [PATCH] Remove Fiber fields that were used for hydrating useMutableSource (#22368) --- packages/react-reconciler/src/ReactFiberRoot.new.js | 6 +----- packages/react-reconciler/src/ReactFiberRoot.old.js | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/react-reconciler/src/ReactFiberRoot.new.js b/packages/react-reconciler/src/ReactFiberRoot.new.js index 90a1809e43873..84e487c248755 100644 --- a/packages/react-reconciler/src/ReactFiberRoot.new.js +++ b/packages/react-reconciler/src/ReactFiberRoot.new.js @@ -10,7 +10,7 @@ import type {FiberRoot, SuspenseHydrationCallbacks} from './ReactInternalTypes'; import type {RootTag} from './ReactRootTags'; -import {noTimeout, supportsHydration} from './ReactFiberHostConfig'; +import {noTimeout} from './ReactFiberHostConfig'; import {createHostRootFiber} from './ReactFiber.new'; import { NoLane, @@ -59,10 +59,6 @@ function FiberRootNode(containerInfo, tag, hydrate) { this.pooledCacheLanes = NoLanes; } - if (supportsHydration) { - this.mutableSourceEagerHydrationData = null; - } - if (enableSuspenseCallback) { this.hydrationCallbacks = null; } diff --git a/packages/react-reconciler/src/ReactFiberRoot.old.js b/packages/react-reconciler/src/ReactFiberRoot.old.js index dc1ec23ae1597..5750e21ddecac 100644 --- a/packages/react-reconciler/src/ReactFiberRoot.old.js +++ b/packages/react-reconciler/src/ReactFiberRoot.old.js @@ -10,7 +10,7 @@ import type {FiberRoot, SuspenseHydrationCallbacks} from './ReactInternalTypes'; import type {RootTag} from './ReactRootTags'; -import {noTimeout, supportsHydration} from './ReactFiberHostConfig'; +import {noTimeout} from './ReactFiberHostConfig'; import {createHostRootFiber} from './ReactFiber.old'; import { NoLane, @@ -59,10 +59,6 @@ function FiberRootNode(containerInfo, tag, hydrate) { this.pooledCacheLanes = NoLanes; } - if (supportsHydration) { - this.mutableSourceEagerHydrationData = null; - } - if (enableSuspenseCallback) { this.hydrationCallbacks = null; }