Skip to content

Commit 6e6e8a7

Browse files
committed
fixup: always use defaultedFilters in QueryCache#find
1 parent 5b4d0fd commit 6e6e8a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/query-core/src/queryCache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,10 @@ export class QueryCache extends Subscribable<QueryCacheListener> {
434434
): Query<TQueryFnData, TError, TData> | undefined {
435435
const defaultedFilters = { exact: true, ...filters }
436436
if (defaultedFilters.exact) {
437-
return this.findExact(filters)
437+
return this.findExact(defaultedFilters)
438438
}
439439

440-
const candidates = this.#keyIndex.getByPrefix(filters.queryKey)
440+
const candidates = this.#keyIndex.getByPrefix(defaultedFilters.queryKey)
441441
if (!candidates) {
442442
return undefined
443443
}

0 commit comments

Comments
 (0)