@umijs/renderer-react 4.0.0-canary.20221230.1 → 4.0.0-canary.20230109.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -1,22 +1,19 @@
1
1
  /// <reference types="react" />
2
- export interface IRoute {
2
+ export interface IRouteSSRProps {
3
+ clientLoader?: () => Promise<any>;
4
+ hasServerLoader?: boolean;
5
+ }
6
+ export interface IRoute extends IRouteSSRProps {
3
7
  id: string;
4
8
  path?: string;
5
9
  index?: boolean;
6
10
  parentId?: string;
7
11
  redirect?: string;
8
- clientLoader?: () => Promise<any>;
9
- hasServerLoader?: boolean;
10
12
  }
11
- export interface IClientRoute {
12
- id: string;
13
+ export interface IClientRoute extends IRoute {
13
14
  element: React.ReactNode;
14
15
  children?: IClientRoute[];
15
16
  routes?: IClientRoute[];
16
- path?: string;
17
- index?: boolean;
18
- parentId?: string;
19
- clientLoader?: () => Promise<any>;
20
17
  }
21
18
  export interface IRoutesById {
22
19
  [id: string]: IRoute;
@@ -1,3 +1,3 @@
1
1
  export declare function __useFetcher(): {
2
- load(path?: string | undefined): void;
2
+ load(path?: string): void;
3
3
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/renderer-react",
3
- "version": "4.0.0-canary.20221230.1",
3
+ "version": "4.0.0-canary.20230109.1",
4
4
  "description": "@umijs/renderer-react",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/renderer-react#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",