Nowon Leeblog.nwlee.com·Apr 5, 2024React 프로젝트에서 Promise.allSettled 활용하기Promise.all 프론트엔드에서 여러 개의 네트워크 요청을 처리할 때 Promise.all 또는 Promise.allSettled 메소드를 활용하여 동시에 처리할 수 있다. Promise.all 메소드는 프로미스 배열을 인자로 받아서 하나의 프로미스를 반환하는데 이 프로미스가 이행(fulfill)되면 인자에 있던 각 프로미스의 결과 값을 배열 형태로 받을 수 있다. 다음과 같은 상황에는 콘솔에 [1, 2, 3]이 출력된다. const r...TypeScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.