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

Function getMyDataArrayKey

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

Source from the content-addressed store, hash-verified

87 type MyQueryKey = readonly ['my-data', number]
88
89 const getMyDataArrayKey: QueryFunction<MyData, MyQueryKey> = ({
90 queryKey: [, n],
91 }) => {
92 return Promise.resolve(n + 42)
93 }
94
95 useQuery({
96 queryKey: ['my-data', 100],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected