( queryKey: TQueryKey, options?: Pick<QueryOptions<any, any, any, any>, 'queryKeyHashFn'>, )
| 209 | } |
| 210 | |
| 211 | export function hashQueryKeyByOptions<TQueryKey extends QueryKey = QueryKey>( |
| 212 | queryKey: TQueryKey, |
| 213 | options?: Pick<QueryOptions<any, any, any, any>, 'queryKeyHashFn'>, |
| 214 | ): string { |
| 215 | const hashFn = options?.queryKeyHashFn || hashKey |
| 216 | return hashFn(queryKey) |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * Default query & mutation keys hash function. |
no outgoing calls
no test coverage detected