@@ -13,11 +13,6 @@ import type { ILoaderData, IRouteComponents, IRoutesById } from './types.js';
1313
1414let root :ReactDOM . Root | null = null ;
1515
16- // react 18 some scenarios need unmount such as micro app
17- export function __getRoot ( ) {
18- return root ;
19- }
20-
2116/**
2217 * 这个组件的功能是 history 发生改变的时候重新触发渲染
2318 *@param props
@@ -84,17 +79,15 @@ export function Routes(): React.ReactElement | null {
8479}
8580
8681/**
87- *umi 渲染需要的配置,在node端调用的哦
82+ *客户端渲染需要的配置
8883 */
8984export type RenderClientOpts = {
9085/**
9186 * 配置 webpack 的 publicPath。
92- *@doc https://umijs.org/docs/api/config#publicpath
9387 */
9488publicPath ?:string ;
9589/**
9690 * 是否是 runtimePublicPath
97- *@doc https://umijs.org/docs/api/config#runtimepublicpath
9891 */
9992runtimePublicPath ?:boolean ;
10093/**
@@ -120,18 +113,16 @@ export type RenderClientOpts = {
120113 */
121114pluginManager :any ;
122115/**
123- * 设置路由 base,部署项目到非根目录下时使用。
124- *@doc https://umijs.org/docs/api/config#base
116+ * 设置路由 base,部署项目到非根目录下时使用。
125117 */
126118basename ?:string ;
127119/**
128120 * loading 中展示的组件 dom
129121 */
130122loadingComponent ?:React . ReactNode ;
131123/**
132- * react router 的 history,用于控制列表渲染
133- *@doc https://umijs.org/docs/api/config#history
134- * 有多种不同的类型,测试的时候建议用 内存路由,默认是 browserHistory
124+ * react router 的 history,用于控制路由渲染
125+ * 有多种不同的类型,测试的时候建议用 内存路由,默认是 browserHistory
135126 */
136127history :History ;
137128/**