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:391–395 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
389
}
390
391
invalidate(): void {
392
if
(!this.state.isInvalidated) {
393
this.#dispatch({
type
:
'invalidate'
})
394
}
395
}
396
397
async
fetch(
398
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