@zauru-sdk/redux 2.31.0 → 2.32.0
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/store.d.ts +6 -0
- package/package.json +3 -3
package/dist/store.d.ts
CHANGED
|
@@ -14,6 +14,12 @@ export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
|
14
14
|
export declare const useAppDispatch: () => AppDispatch;
|
|
15
15
|
export type ReduxParamsConfig = {
|
|
16
16
|
online?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* When true and Redux already has rows for this catalog, the hook returns cached
|
|
19
|
+
* data immediately (loading stays false) and refreshes in the background. A
|
|
20
|
+
* successful fetch replaces Redux and local state; failures keep the cached data.
|
|
21
|
+
*/
|
|
22
|
+
staleWhileRevalidate?: boolean;
|
|
17
23
|
wheres?: string[];
|
|
18
24
|
otherParams?: {
|
|
19
25
|
[key: string]: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/redux",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.32.0",
|
|
4
4
|
"description": "Estructura de Redux propuesta para el desarrollo de webapps en Zauru.",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@reduxjs/toolkit": "^2.2.1",
|
|
28
|
-
"@zauru-sdk/types": "^2.
|
|
28
|
+
"@zauru-sdk/types": "^2.32.0",
|
|
29
29
|
"react": "^18.2.0",
|
|
30
30
|
"react-dom": "^18.2.0",
|
|
31
31
|
"react-redux": "^9.1.0",
|
|
32
32
|
"react-select": "^5.8.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "7d60e08b42f068fedf556d18689d850eada2b250"
|
|
35
35
|
}
|