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

Function getMyDataArrayKey

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected