( queryKey: TQueryKey, options?: Pick<QueryOptions<any, any, any, any>, 'queryKeyHashFn'>, )
| 302 | * @returns The query hash, a string that identifies the query in the cache. |
| 303 | */ |
| 304 | export function hashQueryKeyByOptions<TQueryKey extends QueryKey = QueryKey>( |
| 305 | queryKey: TQueryKey, |
| 306 | options?: Pick<QueryOptions<any, any, any, any>, 'queryKeyHashFn'>, |
| 307 | ): string { |
| 308 | const hashFn = options?.queryKeyHashFn || hashKey |
| 309 | return hashFn(queryKey) |
| 310 | } |
| 311 | |
| 312 | /** |
| 313 | * Default query & mutation keys hash function. |
no outgoing calls
no test coverage detected