Promise.all([ axios.get('/url1'), axios.get('/url2') ])
.then(()=>{
// 위 두 요청이 둘다 성공했을 때 작동
})
.catch(()=> {
})
Front-End/ReactJS
Promise.all([ axios.get('/url1'), axios.get('/url2') ])
.then(()=>{
// 위 두 요청이 둘다 성공했을 때 작동
})
.catch(()=> {
})
댓글