( queryKey: TQueryKey, options?: Pick<QueryOptions<any, any, any, any>, 'queryKeyHashFn'>, )
| 264 | } |
| 265 | |
| 266 | export function hashQueryKeyByOptions<TQueryKey extends QueryKey = QueryKey>( |
| 267 | queryKey: TQueryKey, |
| 268 | options?: Pick<QueryOptions<any, any, any, any>, 'queryKeyHashFn'>, |
| 269 | ): string { |
| 270 | const hashFn = options?.queryKeyHashFn || hashKey |
| 271 | return hashFn(queryKey) |
| 272 | } |
| 273 | |
| 274 | /** |
| 275 | * Default query & mutation keys hash function. |
no outgoing calls
no test coverage detected