GeezerVison is showing github.com — Remove Fiber fields that were used for hydrating useMutableSource (#2… · react/react@cb6c619
File tree
Expand file treeCollapse file tree
Open diff view settings
packages/react-reconciler/src
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberRoot.new.js +1-5Lines changed: 1 addition & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
10 | 10 | import type {FiberRoot, SuspenseHydrationCallbacks} from './ReactInternalTypes'; |
11 | 11 | import type {RootTag} from './ReactRootTags'; |
12 | 12 |
|
13 | | -import {noTimeout, supportsHydration} from './ReactFiberHostConfig'; |
| 13 | +import {noTimeout} from './ReactFiberHostConfig'; |
14 | 14 | import {createHostRootFiber} from './ReactFiber.new'; |
15 | 15 | import { |
16 | 16 | NoLane, |
@@ -59,10 +59,6 @@ function FiberRootNode(containerInfo, tag, hydrate) { |
59 | 59 | this.pooledCacheLanes = NoLanes; |
60 | 60 | } |
61 | 61 |
|
62 | | - if (supportsHydration) { |
63 | | - this.mutableSourceEagerHydrationData = null; |
64 | | - } |
65 | | - |
66 | 62 | if (enableSuspenseCallback) { |
67 | 63 | this.hydrationCallbacks = null; |
68 | 64 | } |
|
Collapse file
Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberRoot.old.js +1-5Lines changed: 1 addition & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
10 | 10 | import type {FiberRoot, SuspenseHydrationCallbacks} from './ReactInternalTypes'; |
11 | 11 | import type {RootTag} from './ReactRootTags'; |
12 | 12 |
|
13 | | -import {noTimeout, supportsHydration} from './ReactFiberHostConfig'; |
| 13 | +import {noTimeout} from './ReactFiberHostConfig'; |
14 | 14 | import {createHostRootFiber} from './ReactFiber.old'; |
15 | 15 | import { |
16 | 16 | NoLane, |
@@ -59,10 +59,6 @@ function FiberRootNode(containerInfo, tag, hydrate) { |
59 | 59 | this.pooledCacheLanes = NoLanes; |
60 | 60 | } |
61 | 61 |
|
62 | | - if (supportsHydration) { |
63 | | - this.mutableSourceEagerHydrationData = null; |
64 | | - } |
65 | | - |
66 | 62 | if (enableSuspenseCallback) { |
67 | 63 | this.hydrationCallbacks = null; |
68 | 64 | } |
|