redux-pack
redux-pack copied to clipboard
Default handling on hooks
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.