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

Method reset

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

Source from the content-addressed store, hash-verified

262 }
263
264 reset(): void {
265 this.destroy()
266 this.setState(this.#initialState)
267 }
268
269 isActive(): boolean {
270 return this.observers.some(

Callers 7

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

Calls 2

destroyMethod · 0.95
setStateMethod · 0.95

Tested by 1

PageFunction · 0.36