Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ destroy
Method
destroy
packages/query-core/src/query.ts:259–263 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
257
}
258
259
destroy(): void {
260
super.destroy()
261
262
this.cancel({ silent: true })
263
}
264
265
get resetState(): QueryState<TData, TError> {
266
return
this.#initialState
Callers
15
reset
Method · 0.95
createQueryController
Function · 0.45
createQueriesController
Function · 0.45
createInfiniteQueryController
Function · 0.45
createMutationController
Function · 0.45
useMutationState
Function · 0.45
useIsMutating
Function · 0.45
useIsFetching
Function · 0.45
counters-and-state.test.ts
File · 0.45
base-controller.test.ts
File · 0.45
client-switch-controllers.test.ts
File · 0.45
context-provider.test.ts
File · 0.45
Calls
1
cancel
Method · 0.95
Tested by
no test coverage detected