@@ -13,7 +13,6 @@ import type {SuspenseState} from './ReactFiberSuspenseComponent.old';
13
13
14
14
import { get as getInstance } from 'shared/ReactInstanceMap' ;
15
15
import ReactSharedInternals from 'shared/ReactSharedInternals' ;
16
- import { enableFloat } from 'shared/ReactFeatureFlags' ;
17
16
import getComponentNameFromFiber from 'react-reconciler/src/getComponentNameFromFiber' ;
18
17
import {
19
18
ClassComponent ,
@@ -24,7 +23,6 @@ import {
24
23
SuspenseComponent ,
25
24
} from './ReactWorkTags' ;
26
25
import { NoFlags , Placement , Hydrating } from './ReactFiberFlags' ;
27
- import { supportsHydration , isHydratableResource } from './ReactFiberHostConfig' ;
28
26
29
27
const ReactCurrentOwner = ReactSharedInternals . ReactCurrentOwner ;
30
28
@@ -276,15 +274,7 @@ export function findCurrentHostFiber(parent: Fiber): Fiber | null {
276
274
function findCurrentHostFiberImpl ( node : Fiber ) {
277
275
// Next we'll drill down this component to find the first HostComponent/Text.
278
276
if ( node . tag === HostComponent || node . tag === HostText ) {
279
- if (
280
- enableFloat &&
281
- supportsHydration &&
282
- isHydratableResource ( node . type , node . memoizedProps )
283
- ) {
284
- // This is a crude opt out of Resources from this search algorithm
285
- } else {
286
- return node ;
287
- }
277
+ return node ;
288
278
}
289
279
290
280
let child = node . child ;
@@ -309,15 +299,7 @@ export function findCurrentHostFiberWithNoPortals(parent: Fiber): Fiber | null {
309
299
function findCurrentHostFiberWithNoPortalsImpl ( node : Fiber ) {
310
300
// Next we'll drill down this component to find the first HostComponent/Text.
311
301
if ( node . tag === HostComponent || node . tag === HostText ) {
312
- if (
313
- enableFloat &&
314
- supportsHydration &&
315
- isHydratableResource ( node . type , node . memoizedProps )
316
- ) {
317
- // This is a crude opt out of Resources from this search algorithm
318
- } else {
319
- return node ;
320
- }
302
+ return node ;
321
303
}
322
304
323
305
let child = node . child ;
0 commit comments