Pass request options through to Axios
See original GitHub issue@haverchuck suggested that I open a feature request here.
I am utilising the rest features of the API
module in amplify. I would like to be able to show a loading/progress bar and had hoped to hook this into the onDownloadProgress
option of the axios.
I had assumed I could simply pass a function through the myInit
parameter of the API.get()
but the options do not seemed to be passed through to axios.
What is the reason for the options being discarded? Is there an alternative way that I could show a progress bar?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
How to make HTTP requests with Axios - LogRocket Blog
Making an HTTP request is as easy as passing a config object to the Axios function. You can make a POST request using...
Read more >How to Perform HTTP Requests with Axios – A Complete Guide
The axios. get() method is used to make an HTTP get request. There are two parameters that must be passed to the Axios...
Read more >Making HTTP requests with Axios - CircleCI
Axios is a promise-based HTTP library that lets developers make requests to either their own or a third-party server to fetch data.
Read more >Axios Options - Mastering JS
Axios ' `options` parameter contains numerous options for configuring HTTP requests. Here's what you need to know.
Read more >Request Config | Axios Docs
These are the available config options for making requests. ... It can be convenient to set `baseURL` for an instance of axios to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@sammartinez That he has worked around it doesn’t make it less of a horrible bug. We’ve worked around it too… By not using it anymore.
@sammartinez Just to say I require this again on another project, it would be really helpful to pass all the options through to axios.