@tanstack/react-query 4.1.0 → 4.2.2
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/build/cjs/query-core/build/esm/index.js +2 -0
- package/build/cjs/query-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +2 -0
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats.json +180 -180
- package/build/types/packages/query-core/src/types.d.ts +10 -8
- package/build/types/packages/react-query/src/types.d.ts +3 -4
- package/build/umd/index.development.js +2 -0
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/src/types.ts +10 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-query",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "Hooks for managing, caching and syncing asynchronous and remote data in React",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"react-error-boundary": "^3.1.4"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@tanstack/query-core": "
|
|
46
|
+
"@tanstack/query-core": "4.2.2",
|
|
47
47
|
"@types/use-sync-external-store": "^0.0.3",
|
|
48
48
|
"use-sync-external-store": "^1.2.0"
|
|
49
49
|
},
|
package/src/types.ts
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
QueryKey,
|
|
9
9
|
MutationObserverOptions,
|
|
10
10
|
MutateFunction,
|
|
11
|
+
DefinedQueryObserverResult,
|
|
11
12
|
} from '@tanstack/query-core'
|
|
12
13
|
import type { QueryClient } from '@tanstack/query-core'
|
|
13
14
|
|
|
@@ -65,10 +66,15 @@ export type UseQueryResult<
|
|
|
65
66
|
TError = unknown,
|
|
66
67
|
> = UseBaseQueryResult<TData, TError>
|
|
67
68
|
|
|
68
|
-
export type
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
>
|
|
69
|
+
export type DefinedUseBaseQueryResult<
|
|
70
|
+
TData = unknown,
|
|
71
|
+
TError = unknown,
|
|
72
|
+
> = DefinedQueryObserverResult<TData, TError>
|
|
73
|
+
|
|
74
|
+
export type DefinedUseQueryResult<
|
|
75
|
+
TData = unknown,
|
|
76
|
+
TError = unknown,
|
|
77
|
+
> = DefinedUseBaseQueryResult<TData, TError>
|
|
72
78
|
|
|
73
79
|
export type UseInfiniteQueryResult<
|
|
74
80
|
TData = unknown,
|