svrcekmichal / redux-axios-middleware

Redux middleware for fetching data with axios HTTP client
MIT License
920 stars 96 forks source link

please provide example using middlewareConfig #81

Open pkellner opened 6 years ago

pkellner commented 6 years ago

My GET is failing with redux-axios-middleware but when I make a simple call with what I believe is the same URL but with just an axios.get, it works. I think an interceptor will help me but I don't understand how to use it.

It would be really helpful if you could update the readme to include usage of the middlewareConfig you define in the readme.

pkellner commented 6 years ago

I think this may do what I want. I'll check back if it does not.

https://stackoverflow.com/questions/43534740/put-error-response-interceptor-on-redux-axios-middleware

pkellner commented 6 years ago

I created a pull request for the readme which (of course) I believe is correct but please double check if you plan on accepting. https://github.com/svrcekmichal/redux-axios-middleware/pull/82