We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b4d0fd commit 6e6e8a7Copy full SHA for 6e6e8a7
packages/query-core/src/queryCache.ts
@@ -434,10 +434,10 @@ export class QueryCache extends Subscribable<QueryCacheListener> {
434
): Query<TQueryFnData, TError, TData> | undefined {
435
const defaultedFilters = { exact: true, ...filters }
436
if (defaultedFilters.exact) {
437
- return this.findExact(filters)
+ return this.findExact(defaultedFilters)
438
}
439
440
- const candidates = this.#keyIndex.getByPrefix(filters.queryKey)
+ const candidates = this.#keyIndex.getByPrefix(defaultedFilters.queryKey)
441
if (!candidates) {
442
return undefined
443
0 commit comments