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

Function getMyDataStringKey

packages/react-query/src/__tests__/useQuery.test-d.tsx:94–97  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

92 })
93
94 const getMyDataStringKey: QueryFunction<MyData, ['1']> = (context) => {
95 expectTypeOf(context.queryKey).toEqualTypeOf<['1']>()
96 return Promise.resolve(Number(context.queryKey[0]) + 42)
97 }
98
99 useQuery({
100 queryKey: ['1'],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected