Question: I have a component that opens a modal executes some asynchronous action, and I would like to self dismiss the modal once the asynchronous function i.e fetchData resolves. Answer: First, you have to create a generic service that wraps ...