MCPcopy 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

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