MCPcopy Create free account
hub / github.com/SvelteStack/svelte-query / hashQueryKeyByOptions

Function hashQueryKeyByOptions

src/queryCore/core/utils.ts:282–288  ·  view source on GitHub ↗
(
  queryKey: TQueryKey,
  options?: QueryOptions<any, any, any, TQueryKey>
)

Source from the content-addressed store, hash-verified

280}
281
282export function hashQueryKeyByOptions<TQueryKey extends QueryKey = QueryKey>(
283 queryKey: TQueryKey,
284 options?: QueryOptions<any, any, any, TQueryKey>
285): string {
286 const hashFn = options?.queryKeyHashFn || hashQueryKey
287 return hashFn(queryKey)
288}
289
290/**
291 * Default query keys hash function.

Callers 4

defaultQueryOptionsMethod · 0.90
updateOptionsMethod · 0.90
buildMethod · 0.90
matchQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…