* Removes all queries from the cache. * * @example * ```ts * const queryCache = queryClient.getQueryCache() * * queryCache.clear() * ```
()
| 230 | * ``` |
| 231 | */ |
| 232 | clear(): void { |
| 233 | notifyManager.batch(() => { |
| 234 | this.getAll().forEach((query) => { |
| 235 | this.remove(query) |
| 236 | }) |
| 237 | }) |
| 238 | } |
| 239 | |
| 240 | /** |
| 241 | * Returns the `Query` instance stored under the given `queryHash`, or `undefined` if none |
no test coverage detected