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

Function getMyDataStringKey

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected