Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is the response used next by default? #80

Open
acrius opened this issue Mar 23, 2018 · 0 comments
Open

Why is the response used next by default? #80

acrius opened this issue Mar 23, 2018 · 0 comments

Comments

@acrius
Copy link

acrius commented Mar 23, 2018

Hello! Many thanks to you for the work.
I have a question. Why is the response used next by default? In this case, the action with the request goes through the chain of middlewares only after redux-axios-middleware. Thus, if we do, for example, the middleware of authentification, we will have to:

  1. Divide the middleware fo authentification into two to process the request and response. Insert them before and after redux-axios-middleware.
  2. Override onSuccess and onError methods in options.
    Why not call dispatch by default?
    Thanks!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant