Relative Content

Tag Archive for javascriptecmascript-6es6-promise

I am unable to get Promise.allSettled() to trigger when the provided Promises are fulfilled

I am trying to create a list of Promises for collecting data from an API, and then once all of the Promises are fulfilled (either resolved or rejected, it doesn’t matter), run another call to the API. However, somewhere along the line, something is not correctly resolving and I am not sure where. Promise.all() with the same array will trigger, but not Promise.allSettled().