Skip to content

Commit

Permalink
Remove Fiber fields that were used for hydrating useMutableSource (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Sep 20, 2021
1 parent 64e70f8 commit cb6c619
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions packages/react-reconciler/src/ReactFiberRoot.new.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -59,10 +59,6 @@ function FiberRootNode(containerInfo, tag, hydrate) {
this.pooledCacheLanes = NoLanes;
}

if (supportsHydration) {
this.mutableSourceEagerHydrationData = null;
}

if (enableSuspenseCallback) {
this.hydrationCallbacks = null;
}
Expand Down
6 changes: 1 addition & 5 deletions packages/react-reconciler/src/ReactFiberRoot.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -59,10 +59,6 @@ function FiberRootNode(containerInfo, tag, hydrate) {
this.pooledCacheLanes = NoLanes;
}

if (supportsHydration) {
this.mutableSourceEagerHydrationData = null;
}

if (enableSuspenseCallback) {
this.hydrationCallbacks = null;
}
Expand Down

0 comments on commit cb6c619

Please sign in to comment.