MCPcopy
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,

Calls 2

getAllMethod · 0.95
removeMethod · 0.95

Tested by

no test coverage detected