* Clears both the query cache and the mutation cache this client is connected to. * @example * ```ts * import { QueryClient } from '@tanstack/query-core' * * const queryClient = new QueryClient() * queryClient.clear() * ```
()
Source from the content-addressed store, hash-verified