Skip to content

Releases: Shaddix/react-query-swagger

v.15.10.1 Tanstack Query v5

22 Oct 07:17
Compare
Choose a tag to compare

Support for Tanstack Query v5

15.5.1 /minimal option

27 Feb 14:07
5b32075
Compare
Choose a tag to compare

15.4.1 Pass AxiosRequestConfig via useQuery

04 Feb 15:06
Compare
Choose a tag to compare

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

15.3.1 Change AxiosRequestConfig per method

04 Feb 08:51
Compare
Choose a tag to compare

You might want to configure default Timeout of 10seconds for all your requests, but few requests require a larger timeout.
Now you are able to call setRequestConfigYOUR_OPERATION_NAME({timeout: 60000}); and this single operation will have a timeout of 1 minute.
getRequestConfig* and patchRequestConfig* methods are also available.

Of course, it's not limited to timeout only, you could change any AxiosRequestConfig option.

15.2.1 Support for Vue

18 Dec 16:34
Compare
Choose a tag to compare
v15.2.1

v15.2.1

15.1.1 - support useInfiniteQuery in persistor

18 Dec 12:32
Compare
Choose a tag to compare

15.0.3 - Split Queries and Clients per file

31 Oct 11:41
Compare
Choose a tag to compare

Starting from v15 we support treeshaking and codesplitting for Clients and Queries

14.5.1 - generate Mutations

27 Oct 15:27
Compare
Choose a tag to compare
v14.5.1

v14.5.1

14.3.2 - fix Hydration of null values

01 Sep 12:47
Compare
Choose a tag to compare

14.3.1 add /use-recommended-configuration

01 Sep 12:46
Compare
Choose a tag to compare

Adds /use-recommended-configuration flag which provides a combination of NSwag flags and some custom search-and-replace post-processing