MCPcopy
hub / github.com/TanStack/query / reset

Method reset

packages/query-core/src/mutationObserver.ts:119–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 }
118
119 reset(): void {
120 // reset needs to remove the observer from the mutation because there is no way to "get it back"
121 // another mutate call will yield a new mutation!
122 this.#currentMutation?.removeObserver(this)
123 this.#currentMutation = undefined
124 this.#updateResult()
125 this.#notify()
126 }
127
128 mutate(
129 variables: TVariables,

Callers 1

setOptionsMethod · 0.95

Calls 3

#updateResultMethod · 0.95
#notifyMethod · 0.95
removeObserverMethod · 0.45

Tested by

no test coverage detected