File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @tanstack/query-core ' : patch
3+ ---
4+
5+ ref(core): remove leftover setStateOptions
Original file line number Diff line number Diff line change @@ -137,7 +137,6 @@ interface ContinueAction {
137137interface SetStateAction < TData , TError > {
138138 type : 'setState'
139139 state : Partial < QueryState < TData , TError > >
140- setStateOptions ?: SetStateOptions
141140}
142141
143142export type Action < TData , TError > =
@@ -150,10 +149,6 @@ export type Action<TData, TError> =
150149 | SetStateAction < TData , TError >
151150 | SuccessAction < TData >
152151
153- export interface SetStateOptions {
154- meta ?: any
155- }
156-
157152// CLASS
158153
159154export class Query <
@@ -241,11 +236,8 @@ export class Query<
241236 return data
242237 }
243238
244- setState (
245- state : Partial < QueryState < TData , TError > > ,
246- setStateOptions ?: SetStateOptions ,
247- ) : void {
248- this . #dispatch( { type : 'setState' , state, setStateOptions } )
239+ setState ( state : Partial < QueryState < TData , TError > > ) : void {
240+ this . #dispatch( { type : 'setState' , state } )
249241 }
250242
251243 cancel ( options ?: CancelOptions ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments