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

Function contactListQuery

examples/react/react-router/src/routes/root.tsx:19–23  ·  view source on GitHub ↗
(q?: string)

Source from the content-addressed store, hash-verified

17import type { LoaderFunctionArgs } from 'react-router-dom'
18
19const contactListQuery = (q?: string) =>
20 queryOptions({
21 queryKey: ['contacts', 'list', q ?? 'all'],
22 queryFn: () => getContacts(q),
23 })
24
25export const loader =
26 (queryClient: QueryClient) =>

Callers 2

loaderFunction · 0.85
RootFunction · 0.85

Calls 2

queryOptionsFunction · 0.90
getContactsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…