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

Function getMyDataStringKey

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

Source from the content-addressed store, hash-verified

98 })
99
100 const getMyDataStringKey: QueryFunction<MyData, ['1']> = (context) => {
101 expectTypeOf(context.queryKey).toEqualTypeOf<['1']>()
102 return Promise.resolve(Number(context.queryKey[0]) + 42)
103 }
104
105 useQuery({
106 queryKey: ['1'],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected