@tanstack/query-core 4.26.1 → 4.27.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/build/lib/query.d.ts +2 -2
- package/build/lib/query.esm.js.map +1 -1
- package/build/lib/query.js.map +1 -1
- package/build/lib/query.mjs.map +1 -1
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/query.ts +2 -2
package/package.json
CHANGED
package/src/query.ts
CHANGED
|
@@ -118,7 +118,7 @@ interface ContinueAction {
|
|
|
118
118
|
|
|
119
119
|
interface SetStateAction<TData, TError> {
|
|
120
120
|
type: 'setState'
|
|
121
|
-
state: QueryState<TData, TError
|
|
121
|
+
state: Partial<QueryState<TData, TError>>
|
|
122
122
|
setStateOptions?: SetStateOptions
|
|
123
123
|
}
|
|
124
124
|
|
|
@@ -212,7 +212,7 @@ export class Query<
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
setState(
|
|
215
|
-
state: QueryState<TData, TError
|
|
215
|
+
state: Partial<QueryState<TData, TError>>,
|
|
216
216
|
setStateOptions?: SetStateOptions,
|
|
217
217
|
): void {
|
|
218
218
|
this.dispatch({ type: 'setState', state, setStateOptions })
|