Skip to content

Commit d2768d3

Browse files
refactor(query-core): remove double negative (TanStack#8952)
Co-authored-by: frontend-woosung <[email protected]>
1 parent 9556576 commit d2768d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/query-core/src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export function partialMatchKey(a: any, b: any): boolean {
241241
}
242242

243243
if (a && b && typeof a === 'object' && typeof b === 'object') {
244-
return !Object.keys(b).some((key) => !partialMatchKey(a[key], b[key]))
244+
return Object.keys(b).every((key) => partialMatchKey(a[key], b[key]))
245245
}
246246

247247
return false

0 commit comments

Comments
 (0)