Skip to content

Commit

Permalink
refactor(core): replace this.getQueryCache() with `this.#queryCache…
Browse files Browse the repository at this point in the history
…` for consistency (#7175)
  • Loading branch information
Mini-ghost committed Mar 26, 2024
1 parent 2389dd1 commit 262794f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/query-core/src/queryClient.ts
Expand Up @@ -154,7 +154,7 @@ export class QueryClient {
getQueriesData<TQueryFnData = unknown>(
filters: QueryFilters,
): Array<[QueryKey, TQueryFnData | undefined]> {
return this.getQueryCache()
return this.#queryCache
.findAll(filters)
.map(({ queryKey, state }) => {
const data = state.data as TQueryFnData | undefined
Expand Down Expand Up @@ -208,7 +208,7 @@ export class QueryClient {
options?: SetDataOptions,
): Array<[QueryKey, TQueryFnData | undefined]> {
return notifyManager.batch(() =>
this.getQueryCache()
this.#queryCache
.findAll(filters)
.map(({ queryKey }) => [
queryKey,
Expand Down

0 comments on commit 262794f

Please sign in to comment.