Skip to content

Conversation

dallonf
Copy link
Contributor

@dallonf dallonf commented Sep 3, 2015

Added a new options argument to connect(), with just one option so far: pure. If set to false (it defaults to true), it will bypass shouldComponentUpdate. This resolves #88.

Let me know if it needs any better explanation in the README.

It might be slightly more performant to do something like if (!finalOptions.pure) { delete Connect.prototype.shouldComponentUpdate }, but that's a little bit too hackish for me to really be proud of...

@gaearon
Copy link
Contributor

gaearon commented Sep 3, 2015

This looks good to me.
@gnoff what do you think?

gaearon added a commit that referenced this pull request Sep 3, 2015
@gaearon gaearon merged commit cde6123 into reduxjs:master Sep 3, 2015
@gnoff
Copy link
Contributor

gnoff commented Sep 3, 2015

Yeah looks good to me.

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.

Suggestion: @connect's shouldComponentUpdate could be optional or opt-in
3 participants