You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| maxRequests | number | 50 | The maximum of API requests when SSR |
459
-
| useCacheData | boolean | true | Set true to inject JS cache data into html when calling `injectSSRHtml()`|
460
-
| alwaysUseCache | boolean | false | Set true to use cache data always (equivalent to `options.useCache = true`) |
461
-
| clearLastCacheWhenConfigChanges | boolean | true | This is default behavior that the cached data will be removed as long as the url config of useApi has been changed. Set false to remain the cached data |
462
-
| debug | boolean | true | Set true to get debug message from console |
463
-
| clientCacheVar | string | 'USE_API_CACHE' | The JS variable name of cache data |
464
-
| renderSSR | Function | () => '' | A callback to render SSR string for injectSSRHtml() |
465
-
| isSSR | Function | () => typeof window === 'undefined' | A function to determine if the current environment is server |
466
-
| shouldUseApiCache | Function | (config?: ReactUseApi.Config, cacheKey?: string): boolean | Returns true to enable useApi to get the API data from API cache, which is loaded by `loadApiCache`. Default is true |
| maxRequests | number | 50 | The maximum of API requests when SSR |
455
+
| useCacheData | boolean | true | Set true to inject JS cache data into html when calling `injectSSRHtml()`|
456
+
| alwaysUseCache | boolean | false | Set true to use cache data always (equivalent to `options.useCache = true`) |
457
+
| clearLastCacheWhenConfigChanges | boolean | true | This is default behavior that the cached data will be removed once the url config of useApi has been changed. Set false to remain the cached data |
458
+
| debug | boolean | true | Set true to get debug message from console |
459
+
| clientCacheVar | string | 'USE_API_CACHE' | The JS variable name of cache data |
460
+
| renderSSR | Function | () => '' | A callback to render SSR string for injectSSRHtml() |
461
+
| isSSR | Function | () => typeof window === 'undefined' | A function to determine if the current environment is server |
462
+
| shouldUseApiCache | Function | (config?: ReactUseApi.Config, cacheKey?: string): boolean | Returns true to enable useApi to get the API data from API cache, which is loaded by `loadApiCache`. Default is true |
0 commit comments