MCPcopy Create free account
hub / github.com/TanStack/query / invalidate

Method invalidate

packages/query-core/src/query.ts:395–399  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

393 }
394
395 invalidate(): void {
396 if (!this.state.isInvalidated) {
397 this.#dispatch({ type: 'invalidate' })
398 }
399 }
400
401 async fetch(
402 options?: QueryOptions<TQueryFnData, TError, TData, TQueryKey>,

Callers 2

invalidateQueriesMethod · 0.80
query.test.tsxFile · 0.80

Calls 1

#dispatchMethod · 0.95

Tested by

no test coverage detected