@@ -13,7 +13,6 @@ import type {SuspenseState} from './ReactFiberSuspenseComponent.old';
1313
1414import { get as getInstance } from 'shared/ReactInstanceMap' ;
1515import ReactSharedInternals from 'shared/ReactSharedInternals' ;
16- import { enableFloat } from 'shared/ReactFeatureFlags' ;
1716import getComponentNameFromFiber from 'react-reconciler/src/getComponentNameFromFiber' ;
1817import {
1918 ClassComponent ,
@@ -24,7 +23,6 @@ import {
2423 SuspenseComponent ,
2524} from './ReactWorkTags' ;
2625import { NoFlags , Placement , Hydrating } from './ReactFiberFlags' ;
27- import { supportsHydration , isHydratableResource } from './ReactFiberHostConfig' ;
2826
2927const ReactCurrentOwner = ReactSharedInternals . ReactCurrentOwner ;
3028
@@ -276,15 +274,7 @@ export function findCurrentHostFiber(parent: Fiber): Fiber | null {
276274function findCurrentHostFiberImpl ( node : Fiber ) {
277275 // Next we'll drill down this component to find the first HostComponent/Text.
278276 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 ;
288278 }
289279
290280 let child = node . child ;
@@ -309,15 +299,7 @@ export function findCurrentHostFiberWithNoPortals(parent: Fiber): Fiber | null {
309299function findCurrentHostFiberWithNoPortalsImpl ( node : Fiber ) {
310300 // Next we'll drill down this component to find the first HostComponent/Text.
311301 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 ;
321303 }
322304
323305 let child = node . child ;
0 commit comments