( queryKey: TQueryKey, options?: Pick<QueryOptions<any, any, any, any>, 'queryKeyHashFn'>, )
| 218 | } |
| 219 | |
| 220 | export function hashQueryKeyByOptions<TQueryKey extends QueryKey = QueryKey>( |
| 221 | queryKey: TQueryKey, |
| 222 | options?: Pick<QueryOptions<any, any, any, any>, 'queryKeyHashFn'>, |
| 223 | ): string { |
| 224 | const hashFn = options?.queryKeyHashFn || hashKey |
| 225 | return hashFn(queryKey) |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * Default query & mutation keys hash function. |
no outgoing calls
no test coverage detected