(
options?: OmitKeyof<
UseQueryOptions<string>,
'queryKey' | 'queryFn',
'safely'
>,
)
| 181 | const key = queryKey() |
| 182 | |
| 183 | const useCustomQuery = ( |
| 184 | options?: OmitKeyof< |
| 185 | UseQueryOptions<string>, |
| 186 | 'queryKey' | 'queryFn', |
| 187 | 'safely' |
| 188 | >, |
| 189 | ) => { |
| 190 | return useQuery({ |
| 191 | ...options, |
| 192 | queryKey: key, |
| 193 | queryFn: () => Promise.resolve('data'), |
| 194 | }) |
| 195 | } |
| 196 | |
| 197 | const { data } = reactive(useCustomQuery()) |
| 198 |
no test coverage detected