You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a "delete resource" context, Success need to call for loading once again. In my case, it also has to close the confirm dialog. Can I dispatch multiple actions on success?
The text was updated successfully, but these errors were encountered:
You shouldn't use redux-api-middleware's action types to dispatch such actions. However, you can catch the success action somewhere (you can choose from writing a middleware handling this, using redux-saga, and so on). redux-api-middleware allows you to pass a function to payload as well, which will be called on successful server response - you can experiment with placing a thunk into there but unfortunately, I didn't test it by myself.
On a "delete resource" context, Success need to call for loading once again. In my case, it also has to close the confirm dialog. Can I dispatch multiple actions on success?
The text was updated successfully, but these errors were encountered: