mirror of
https://github.com/TanStack/query.git
synced 2026-11-18 19:33:22 +00:00
611 B
611 B
| id | title |
|---|---|
| partialMatchKey | partialMatchKey |
function partialMatchKey(a: readonly unknown[], b: readonly unknown[]): boolean;
Defined in: packages/query-core/src/utils.ts:343
Checks if key b partially matches with key a.
Parameters
a
readonly unknown[]
The key to check, e.g. a query's own key.
b
readonly unknown[]
The (partial) key to match against a.
Returns
boolean
true if every array element or object property in b matches the one at the same
position in a.