( queryKey: TQueryKey, options?: Pick<QueryOptions<any, any, any, any>, 'queryKeyHashFn'>, )
| 202 | } |
| 203 | |
| 204 | export function hashQueryKeyByOptions<TQueryKey extends QueryKey = QueryKey>( |
| 205 | queryKey: TQueryKey, |
| 206 | options?: Pick<QueryOptions<any, any, any, any>, 'queryKeyHashFn'>, |
| 207 | ): string { |
| 208 | const hashFn = options?.queryKeyHashFn || hashKey |
| 209 | return hashFn(queryKey) |
| 210 | } |
| 211 | |
| 212 | /** |
| 213 | * Default query & mutation keys hash function. |
no outgoing calls
no test coverage detected
searching dependent graphs…