MCPcopy Create free account
hub / github.com/HuolalaTech/react-query-kit / getKey

Function getKey

src/utils.ts:46–48  ·  view source on GitHub ↗
(queryKey: QueryKey, variables?: any)

Source from the content-addressed store, hash-verified

44}
45
46export const getKey = (queryKey: QueryKey, variables?: any): QueryKey => {
47 return variables === undefined ? queryKey : [...queryKey, variables]
48}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected