Remove `axios.all` and `axios.spread`
See original GitHub issueThose helpers can easily be replaced with native features (Promise.all
and ES6 parameter destructuring) or specialized libraries, so we should restrict our API to HTTP-related methods.
We can deprecate them in 0.x and completely remove then in 1.0.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:51
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How to use the axios.spread function in axios - Snyk
To help you get started, we've selected a few axios examples, based on popular ways it is used in public projects. ; return...
Read more >Axios/Vue - Prevent axios.all() to keep executing
In my application wile authenticating the user I call the fetchData function. If the user token become invalid, the application will run axios....
Read more >Using axios.all to make concurrent requests - LogRocket Blog
axios.all is a helper method built into Axios to deal with concurrent requests. Instead of making multiple HTTP requests individually, ...
Read more >How to Use axios.all() to Make Concurrent HTTP Requests
Here's how you can use `axios.all()` to make multiple HTTP requests ... your code more readable as axios.all() takes a spread of requests....
Read more >Axios Cheat Sheet - Kapeli - Dash for macOS
Make a request for a user with a given ID axios.get('/user? ... axios.get('/user/12345/permissions'); } axios.all([getUserAccount(), getUserPermissions()]) ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
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
Should the following in the README example:
be replaced with this instead:
or this:
Axios uses
Promise.all
under the hood so you must be polyfilling it already.