redux-pack icon indicating copy to clipboard operation
redux-pack copied to clipboard

Default handling on hooks

Open mb8z opened this issue 7 years ago • 0 comments

Would it be possible to add a possibility to configure the middleware?

Let's say I want to send user to the login page every time I get 401 Unauthorized from the response. I have to do this in every single actions now, but with the default onFailure hook I could do this just once.

mb8z avatar Jan 02 '18 17:01 mb8z