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

Method setState

src/queryCore/core/mutation.ts:106–108  ·  view source on GitHub ↗
(state: MutationState<TData, TError, TVariables, TContext>)

Source from the content-addressed store, hash-verified

104 }
105
106 setState(state: MutationState<TData, TError, TVariables, TContext>): void {
107 this.dispatch({ type: 'setState', state })
108 }
109
110 addObserver(observer: MutationObserver<any, any, any, any>): void {
111 if (this.observers.indexOf(observer) === -1) {

Callers

nothing calls this directly

Calls 1

dispatchMethod · 0.95

Tested by

no test coverage detected