question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How pass extra parameters to Axios

See original GitHub issue

I want to track progress of my POST request. With Axios I would usually pass an onUploadProgress parameter to axios.post(...). With orval I would want to do this from the function/hook it generates. Is this currently possible? This seems to be a more general issue with other parameters of AxiosRequestConfig not being exposed to the user of the orval.

What versions are you using?

**Package Version: 5.0.0-alpha.9 **Browser Version: Firefox 87

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
anymaniaxcommented, May 3, 2021

I released a new version of orval which also handle a second argument with a mutator

1reaction
anymaniaxcommented, May 2, 2021

Hello @OliverDudgeon, I published a new alpha with the possibility to pass an AxiosRequestConfig if you don’t use a mutator. I have an idea in the case you use mutator but it will need me more time to add it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pass parameter/argument to axios interceptor - Stack Overflow
axios allows to pass some additional request parameters: axios.post('/api', `some body`, {headers: {'Content-Type': ' text/html ...
Read more >
How to send query parameters using Axios? - RapidAPI
The other way to send query parameters to a GET request is by sending a params object along with it. Here is how...
Read more >
GET Request Query Params with Axios - Mastering JS
The easiest way to make a GET request with Axios is the axios.get() function. The 2nd parameter to axios.get() is the Axios options:...
Read more >
Send Request Query Parameters with Axios - Stack Abuse
In this article, we have explained how to include query parameters in GET requests made with Axios. Query parameters are additional pieces of ......
Read more >
Passing custom props via axios config · Issue #2295 - GitHub
Describe the bug We use some custom parameters via axios configuration. They are used in the response interceptor.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found