MCPcopy Create free account
hub / github.com/SvelteStack/svelte-query / setState

Method setState

src/queryCore/core/query.ts:258–263  ·  view source on GitHub ↗
(
    state: QueryState<TData, TError>,
    setStateOptions?: SetStateOptions
  )

Source from the content-addressed store, hash-verified

256 }
257
258 setState(
259 state: QueryState<TData, TError>,
260 setStateOptions?: SetStateOptions
261 ): void {
262 this.dispatch({ type: 'setState', state, setStateOptions })
263 }
264
265 cancel(options?: CancelOptions): Promise<void> {
266 const promise = this.promise

Callers 6

resetMethod · 0.95
hydrateFunction · 0.45
broadcastQueryClientFunction · 0.45
componentDidUpdateMethod · 0.45
ProgressiveImageClass · 0.45
Image.jsFile · 0.45

Calls 1

dispatchMethod · 0.95

Tested by

no test coverage detected