@steroidsjs/core 2.2.85 → 2.2.86
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.
|
@@ -8,6 +8,7 @@ import { IComponents } from '../providers/ComponentsProvider';
|
|
|
8
8
|
import { IRouteItem } from '../ui/nav/Router/Router';
|
|
9
9
|
import MetricsComponent from '../components/MetricsComponent';
|
|
10
10
|
import { IScreenProviderProps } from '../providers/ScreenProvider';
|
|
11
|
+
import { IFetchConfig } from '../hooks/useFetch';
|
|
11
12
|
/**
|
|
12
13
|
* Application HOC
|
|
13
14
|
* Обертка над корневым компонентом приложения, используется только в `Application.tsx`. Добавляет через React Context
|
|
@@ -27,6 +28,10 @@ export interface IApplicationHookConfig {
|
|
|
27
28
|
layoutView?: () => CustomView;
|
|
28
29
|
layoutProps?: Record<string, unknown>;
|
|
29
30
|
screen?: boolean | Omit<IScreenProviderProps, 'children'>;
|
|
31
|
+
/**
|
|
32
|
+
* These fetch configurations will be used to preload and store for no matter what route matched in case of SSR
|
|
33
|
+
*/
|
|
34
|
+
defaultFetches?: IFetchConfig[];
|
|
30
35
|
}
|
|
31
36
|
export interface IApplicationHookResult {
|
|
32
37
|
renderApplication: (children?: any) => JSX.Element;
|