Imagine there is a modal/dialog open. In that modal there is a save button that dispatches an updateUser action that gets picked up by redux-saga. redux-saga then does the network call. If this network call is successful the modal should automatically close. What would be the optimal way of doing this with redux-saga?
In redux thunk, we would dispatch the action (promise) and we can then chain a 'then' that handles the modal close when the network call was successful, right there in the component. So me and a colleague were wondering, what would be the optimal way to do this with redux-saga?