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

Method reset

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

Source from the content-addressed store, hash-verified

267 }
268
269 reset(): void {
270 this.destroy()
271 this.setState(this.resetState)
272 }
273
274 isActive(): boolean {
275 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