skip to Main Content

Javascript promise.all axios request not working correctly

I am trying to make a bunch of axios get calls with this code: console.log("getting here") const promises = Data?.stuff.map(async(id: any) => { axios.get('http://127.0.0.1:8080/api/v1/stuff/' + id) .then(response => { console.log(response.data) return response.data; }); const tempLesson: any = await Promise.all(promises); console.log("never…

VIEW QUESTION
Back To Top
Search