MCPcopy Create free account
hub / github.com/SvelteStack/svelte-query / reset

Method reset

src/queryCore/core/query.ts:276–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

274 }
275
276 reset(): void {
277 this.destroy()
278 this.setState(this.initialState)
279 }
280
281 isActive(): boolean {
282 return this.observers.some(observer => observer.options.enabled !== false)

Callers 1

resetQueriesMethod · 0.45

Calls 2

destroyMethod · 0.95
setStateMethod · 0.95

Tested by

no test coverage detected