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:258–262 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
256
}
257
258
destroy(): void {
259
super.destroy()
260
261
this.cancel({ silent: true })
262
}
263
264
get resetState(): QueryState<TData, TError> {
265
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