Releases: Shaddix/react-query-swagger
v.15.10.1 Tanstack Query v5
15.5.1 /minimal option
See CHANGELOG for details
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 **/,
);
15.3.1 Change AxiosRequestConfig per method
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
v15.2.1 v15.2.1
15.1.1 - support useInfiniteQuery in persistor
v15.1.1 v15.1.1
15.0.3 - Split Queries and Clients per file
Starting from v15 we support treeshaking and codesplitting for Clients and Queries
14.5.1 - generate Mutations
v14.5.1 v14.5.1
14.3.2 - fix Hydration of null values
v14.3.2 v14.3.2
14.3.1 add /use-recommended-configuration
Adds /use-recommended-configuration flag which provides a combination of NSwag flags and some custom search-and-replace post-processing