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

Updated Middleware discussion to include middleware returns so that p… #82

Merged

Conversation

pkellner
Copy link
Contributor

…rocessing continues. Also included example of where to put the middleware config object when adding the middleware to redux

I'm not 100% sure I did the returns properly and that my renaming req to res was the right thing to do.

…rocessing continues. Also included example of where to put the middleware config object when adding the middleware to redux
},
error: function ({getState, dispatch, getSourceAction}, error) {
//...
return response

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo - should this be return Promise.reject(error); ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so but let me test to make sure.

@vasilevich vasilevich merged commit 2e6228c into svrcekmichal:master Sep 5, 2019
@vasilevich
Copy link
Collaborator

thank you for your support

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

Successfully merging this pull request may close these issues.

3 participants