I have an array of payloads. Now, I want to dispatch requests for all the elements of the array when a button is clicked. I am trying to map over the array and send all requests