Skip to content

15.4.1 Pass AxiosRequestConfig via useQuery

Compare
Choose a tag to compare
@Shaddix Shaddix released this 04 Feb 15:06
· 101 commits to master since this release

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 **/,
);