@stack-spot/portal-network 0.32.0 → 0.33.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.33.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.32.0...portal-network@v0.33.0) (2024-09-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* makes react query cache stale, unless invalidated ([#388](https://github.com/stack-spot/portal-commons/issues/388)) ([d69ba66](https://github.com/stack-spot/portal-commons/commit/d69ba66a34120f22e09cedd17bddf792b9ab9538))
|
|
9
|
+
|
|
3
10
|
## [0.32.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.31.0...portal-network@v0.32.0) (2024-09-23)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-query-client.d.ts","sourceRoot":"","sources":["../../src/network/react-query-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD;;GAEG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"react-query-client.d.ts","sourceRoot":"","sources":["../../src/network/react-query-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD;;GAEG;AACH,eAAO,MAAM,WAAW,aAAmH,CAAA"}
|
|
@@ -2,5 +2,5 @@ import { QueryClient } from '@tanstack/react-query';
|
|
|
2
2
|
/**
|
|
3
3
|
* The global, unique, Query Client for React Query.
|
|
4
4
|
*/
|
|
5
|
-
export const queryClient = new QueryClient({ defaultOptions: { queries: { refetchOnWindowFocus: false, retry: 3 } } });
|
|
5
|
+
export const queryClient = new QueryClient({ defaultOptions: { queries: { refetchOnWindowFocus: false, retry: 3, staleTime: Infinity } } });
|
|
6
6
|
//# sourceMappingURL=react-query-client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-query-client.js","sourceRoot":"","sources":["../../src/network/react-query-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,oBAAoB,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"react-query-client.js","sourceRoot":"","sources":["../../src/network/react-query-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,oBAAoB,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -3,4 +3,4 @@ import { QueryClient } from '@tanstack/react-query'
|
|
|
3
3
|
/**
|
|
4
4
|
* The global, unique, Query Client for React Query.
|
|
5
5
|
*/
|
|
6
|
-
export const queryClient = new QueryClient({ defaultOptions: { queries: { refetchOnWindowFocus: false, retry: 3 } } })
|
|
6
|
+
export const queryClient = new QueryClient({ defaultOptions: { queries: { refetchOnWindowFocus: false, retry: 3, staleTime: Infinity } } })
|