MCPcopy Index your code
hub / github.com/HuolalaTech/react-query-kit / useBaseHook

Function useBaseHook

src/createBaseQuery.ts:71–83  ·  view source on GitHub ↗
(
    options: QueryBaseHookOptions,
    queryClient?: QueryClient
  )

Source from the content-addressed store, hash-verified

69 }
70
71 const useBaseHook = (
72 options: QueryBaseHookOptions,
73 queryClient?: QueryClient
74 ) => {
75 return useRQHook(
76 {
77 ...options,
78 ...getQueryOptions(options.fetcher, options.variables),
79 ...overrideOptions,
80 },
81 queryClient
82 )
83 }
84
85 return Object.assign(withMiddleware(useBaseHook, defaultOptions, 'queries'), {
86 fetcher: defaultOptions.fetcher,

Callers

nothing calls this directly

Calls 1

getQueryOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…