Questions tagged [axios]
a promise based HTTP client for the browser and node.js
20 questions
1
vote
1
answer
107
views
Axios wrapper used with API requests
I have created Axios wrapper following SOLID principles. Is there any feedback on improving it's structure in a more cleaner and better way?
axiosconfig.ts
...
0
votes
1
answer
690
views
Upload multiple images using react and axios
I trying to upload multiple images about (5000 of size upto 50mb) and trying to figure out what would be the best way to do it.
right now i have this code:
...
4
votes
1
answer
964
views
A React - Typescript custom hook for any request (GET, POST, PUT, DELETE) to my back end
I'm building a full stack exercise app and some of my objects include routines, exercises, exercise sets etc. Instead of writing out specific get, post, put and delete requests for each resource, I ...
3
votes
0
answers
88
views
Which one should I choose for simple task: async/await or promise.then?
I made a helper function for drawing the map(OpenLayers).
Then I made another helper function for fetch(axios.get) the map URL.
...
4
votes
1
answer
765
views
Access token regeneration for Axios requests
Description
I've developed an application which use axios to communicate with the PayPal API. PayPal has a NodeJS SDK, but unfortunately this doesn't support the ...
4
votes
1
answer
6k
views
Disabling a form button while there's an http request running
I have a form built with react, formik and yup, and this form has some async validations. Apparently, some users were able to bypass these validations, and to prevent some errors, I wanted to disable ...
-1
votes
1
answer
1k
views
Try-catch-finally snippet [closed]
Using visual studio I created a snippet which helps me surround my already written or new code into a try-catch-finally block. I use axios for REST so there had to be separate error handling method so ...
5
votes
3
answers
936
views
Idomatic way to ignore `finally` block after cancelling network request [closed]
In React, it is quite common for me to have something similar to the following.
...
3
votes
1
answer
456
views
Display and search through a JSON's items in Vue.js
I have put together this small application which displays data from a JSON file known as "Users" in an HTML5 table.
I use Bootstrap 3, Axios and Vue.js 2 for this purpose.
Here is the code:
...
4
votes
1
answer
167
views
Fetching data from API in JavaScript
I'm using Axios to fetch data from an API, and don't know if this is the best way to deal with APIs in ReactJS or not. I want to know if anyone can suggest edits or something to make the code more ...