(
options?: OmitKeyof<
UseQueryOptions<string>,
'queryKey' | 'queryFn',
'safely'
>,
)
| 207 | const key = createKey() |
| 208 | |
| 209 | const useCustomQuery = ( |
| 210 | options?: OmitKeyof< |
| 211 | UseQueryOptions<string>, |
| 212 | 'queryKey' | 'queryFn', |
| 213 | 'safely' |
| 214 | >, |
| 215 | ) => { |
| 216 | return useQuery({ |
| 217 | ...options, |
| 218 | queryKey: key, |
| 219 | queryFn: () => Promise.resolve('data'), |
| 220 | }) |
| 221 | } |
| 222 | |
| 223 | const { data } = reactive(useCustomQuery()) |
| 224 |
no test coverage detected