lelandrichardson / redux-pack

Sensible promise handling and middleware for redux
MIT License
1.33k stars 60 forks source link

Default handling on hooks #64

Open mb8z opened 6 years ago

mb8z commented 6 years ago

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.