Skip to content

Commit

Permalink
Remove Fiber fields that were used for hydrating useMutableSource (fa…
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored and zhengjitf committed Apr 15, 2022
1 parent 7224995 commit af8c978
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 af8c978

Please sign in to comment.