Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TanStack/query
/ clear
Method
clear
packages/query-core/src/queryCache.ts:158–164 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
156
}
157
158
clear(): void {
159
notifyManager.batch(() => {
160
this.getAll().forEach((query) => {
161
this.remove(query)
162
})
163
})
164
}
165
166
get<
167
TQueryFnData = unknown,
Callers
15
with-persist-query-client.test.ts
File · 0.45
useIsMutating.test.ts
File · 0.45
ReactQueryStreamedHydration
Function · 0.45
ContentView
Function · 0.45
setupQueryCacheSubscription
Function · 0.45
setupMutationCacheSubscription
Function · 0.45
HydrationBoundary.test.tsx
File · 0.45
useSuspenseQueries.test.tsx
File · 0.45
ssr.test.tsx
File · 0.45
ssr-hydration.test.tsx
File · 0.45
inject-mutation-state.test.ts
File · 0.45
pending-tasks.test.ts
File · 0.45
Calls
2
getAll
Method · 0.95
remove
Method · 0.95
Tested by
no test coverage detected