Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ invalidate
Method
invalidate
packages/query-core/src/query.ts:394–398 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
392
}
393
394
invalidate(): void {
395
if
(!this.state.isInvalidated) {
396
this.#dispatch({
type
:
'invalidate'
})
397
}
398
}
399
400
async
fetch(
401
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