Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TanStack/query
/ invalidate
Method
invalidate
packages/query-core/src/query.ts:381–385 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
379
}
380
381
invalidate(): void {
382
if
(!this.state.isInvalidated) {
383
this.#dispatch({
type
:
'invalidate'
})
384
}
385
}
386
387
async
fetch(
388
options?: QueryOptions<TQueryFnData, TError, TData, TQueryKey>,
Callers
2
invalidateQueries
Method · 0.80
query.test.tsx
File · 0.80
Calls
1
#dispatch
Method · 0.95
Tested by
no test coverage detected