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

Function getMyDataArrayKey

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected