File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/react-dom/src/client Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
import type { Container } from './ReactDOMHostConfig' ;
11
11
import type { RootType } from './ReactDOMRoot' ;
12
+ import type { FiberRoot } from 'react-reconciler/src/ReactInternalTypes' ;
12
13
import type { ReactNodeList } from 'shared/ReactTypes' ;
13
14
14
15
import {
@@ -184,10 +185,8 @@ function legacyRenderSubtreeIntoContainer(
184
185
warnOnInvalidCallback ( callback === undefined ? null : callback , 'render' ) ;
185
186
}
186
187
187
- // TODO: Without `any` type, Flow says "Property cannot be accessed on any
188
- // member of intersection type." Whyyyyyy.
189
- let root : RootType = ( container . _reactRootContainer : any ) ;
190
- let fiberRoot ;
188
+ let root = container . _reactRootContainer ;
189
+ let fiberRoot : FiberRoot ;
191
190
if ( ! root ) {
192
191
// Initial mount
193
192
root = container . _reactRootContainer = legacyCreateRootFromDOMContainer (
You can’t perform that action at this time.
0 commit comments