MCPcopy 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

resetMethod · 0.95
createQueryControllerFunction · 0.45
createQueriesControllerFunction · 0.45
createMutationControllerFunction · 0.45
useMutationStateFunction · 0.45
useIsMutatingFunction · 0.45
useIsFetchingFunction · 0.45

Calls 1

cancelMethod · 0.95

Tested by

no test coverage detected