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

Function getMyDataArrayKey

packages/react-query/src/__tests__/useQuery.test-d.tsx:83–87  ·  view source on GitHub ↗
({
    queryKey: [, n],
  })

Source from the content-addressed store, hash-verified

81 type MyQueryKey = readonly ['my-data', number]
82
83 const getMyDataArrayKey: QueryFunction<MyData, MyQueryKey> = ({
84 queryKey: [, n],
85 }) => {
86 return Promise.resolve(n + 42)
87 }
88
89 useQuery({
90 queryKey: ['my-data', 100],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected