(
options?: OmitKeyof<
UseQueryOptions<string>,
'queryKey' | 'queryFn',
'safely'
>,
)
| 201 | const key = createKey() |
| 202 | |
| 203 | const useCustomQuery = ( |
| 204 | options?: OmitKeyof< |
| 205 | UseQueryOptions<string>, |
| 206 | 'queryKey' | 'queryFn', |
| 207 | 'safely' |
| 208 | >, |
| 209 | ) => { |
| 210 | return useQuery({ |
| 211 | ...options, |
| 212 | queryKey: key, |
| 213 | queryFn: () => Promise.resolve('data'), |
| 214 | }) |
| 215 | } |
| 216 | |
| 217 | const { data } = reactive(useCustomQuery()) |
| 218 |
no test coverage detected