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