MCPcopy Create free account
hub / github.com/TanStack/query / getQueryKey

Function getQueryKey

packages/vue-query/src/__tests__/useQueries.test-d.ts:158–158  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

156 it('should have proper type inference with different options provided', () => {
157 const numbers = [1, 2, 3]
158 const getQueryKey = (n: number) => [n]
159 const queryFn = (n: number) => () => Promise.resolve(n)
160 const select = (data: number) => data.toString()
161

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected