Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

Do not swallow return value of next() in middleware #178

Merged
merged 1 commit into from
Jan 12, 2016

Conversation

langpavel
Copy link
Contributor

Correct way is to pass unknown actions to next() and return it's value.

Current implementation can break other middlewares

@jlongster
Copy link
Member

You're totally right! This is the kind of stuff I wanted to find before releasing 2.0.0. Thanks so much!

jlongster added a commit that referenced this pull request Jan 12, 2016
Do not swallow return value of next() in middleware
@jlongster jlongster merged commit a9797d9 into reactjs:master Jan 12, 2016
@langpavel langpavel deleted the fix-middleware-return-value branch January 13, 2016 02:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants