'Can you make multiple async calls in one dispatch in react redux

I need to make make two fetch requests from keycloak, 1st fetch returns a json with users which they all have an id, 2nd fetch return a json with selected roles each user has which in order to get for each user i need to provide the ID on endpoint,

At the end i need to render user Username, email and role in a list on react



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source