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

Connector#componentWillReceiveProps should use the new value of select #107

Merged
merged 2 commits into from
Jun 16, 2015

Conversation

gaearon
Copy link
Contributor

@gaearon gaearon commented Jun 16, 2015

This fixes a bug that causes the state passed by Connector to stay stale when a new select function is passed. This PR includes a failing test and a fix that makes it pass.

@gaearon gaearon mentioned this pull request Jun 16, 2015

export default function jsdomReact() {
jsdom();
ExecutionEnvironment.canUseDOM = true;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can't use setState if I don't add this.

gaearon added a commit that referenced this pull request Jun 16, 2015
Connector#componentWillReceiveProps should use the new value of `select`
@gaearon gaearon merged commit 6468001 into master Jun 16, 2015
@gaearon gaearon deleted the fix-receive-select branch June 16, 2015 15:22
This pull request was closed.
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.

1 participant