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

Function getMyDataStringKey

packages/solid-query/src/__tests__/useQuery.test-d.tsx:95–98  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected