15.4.1 Pass AxiosRequestConfig via useQuery
You could pass AxiosRequestConfig
parameters for each request via the last parameter of useQuery
. E.g.:
const petsQuery = ClientQuery.useFindPetsByStatusQuery(
[Status.Available, Status.Pending, Status.Sold],
queryParams,
{ timeout: 1000 } /** this param accepts AxiosRequestConfig **/,
);