(
options?: OmitKeyof<
UseQueryOptions<string>,
'queryKey' | 'queryFn',
'safely'
>,
)
| 157 | const key = queryKey() |
| 158 | |
| 159 | const useCustomQuery = ( |
| 160 | options?: OmitKeyof< |
| 161 | UseQueryOptions<string>, |
| 162 | 'queryKey' | 'queryFn', |
| 163 | 'safely' |
| 164 | >, |
| 165 | ) => { |
| 166 | return useQuery({ |
| 167 | ...options, |
| 168 | queryKey: key, |
| 169 | queryFn: () => Promise.resolve('data'), |
| 170 | }) |
| 171 | } |
| 172 | |
| 173 | const { data } = reactive(useCustomQuery()) |
| 174 |
no test coverage detected