-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
Question about middlewareAPI #2097
Comments
Here's the commit where that was added: af474ba. Unsure why. Is the current implementation causing you problems? |
@jimbolla |
@davidjuin0519 |
This has been asked in previous issues. I don't have a link to the specific official answer at the moment, but I believe it's to set up a closure referring to the original dispatch function. |
@markerikson |
In
applyMiddleware.js
:I think we can simply pass
dispatch
instead of wrapping it in a lambda:The code above passes all the tests except for this one:
So here's my question: Is there any specific concern about the original version of
middlewareAPI
? Or is it okay to improve it?The text was updated successfully, but these errors were encountered: