MCPcopy
hub / github.com/TanStack/query / useCustomQuery

Function useCustomQuery

packages/react-query/src/__tests__/useQuery.test-d.tsx:310–318  ·  view source on GitHub ↗
(
          options?: OmitKeyof<UseQueryOptions<Data>, 'queryKey' | 'queryFn'>,
        )

Source from the content-addressed store, hash-verified

308 type Data = string
309
310 const useCustomQuery = (
311 options?: OmitKeyof<UseQueryOptions<Data>, 'queryKey' | 'queryFn'>,
312 ) => {
313 return useQuery({
314 ...options,
315 queryKey: ['todos-key'],
316 queryFn: () => Promise.resolve('data'),
317 })
318 }
319
320 const { data } = useCustomQuery()
321

Callers 1

Calls 1

useQueryFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…