MCPcopy Create free account
hub / github.com/TanStack/query / reset

Function reset

packages/angular-query/src/inject-mutation.ts:236–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234 }
235
236 const reset = () => {
237 outsideZone(() =>
238 untracked(() => {
239 const observer = observerSignal()
240 observer.setOptions(optionsSignal())
241 observer.reset()
242 }),
243 )
244 }
245
246 return Object.assign(signalProxy(mutationStateSignal, mutationResultFields), {
247 mutate,

Callers 6

PageFunction · 0.85
PageFunction · 0.85
ExampleFunction · 0.85
retryFunction · 0.85

Calls 2

setOptionsMethod · 0.45
resetMethod · 0.45

Tested by 2

PageFunction · 0.68
PageFunction · 0.68