@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/query-core",
3
- "version": "4.26.1",
3
+ "version": "4.27.0",
4
4
  "description": "The framework agnostic core that powers TanStack Query",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
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 })