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

Method reset

packages/query-core/src/query.ts:268–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

266 }
267
268 reset(): void {
269 this.destroy()
270 this.setState(this.resetState)
271 }
272
273 isActive(): boolean {
274 return this.observers.some(

Callers 9

setupDevtoolsFunction · 0.45
PageFunction · 0.45
resetQueriesMethod · 0.45
query.test.tsxFile · 0.45
resetDemoStateMethod · 0.45
resetDemoStateMethod · 0.45

Calls 2

destroyMethod · 0.95
setStateMethod · 0.95

Tested by 1

PageFunction · 0.36