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

Support instance methods on @resolve #84

Open
ericclemmons opened this issue Sep 16, 2015 · 0 comments
Open

Support instance methods on @resolve #84

ericclemmons opened this issue Sep 16, 2015 · 0 comments
Milestone

Comments

@ericclemmons
Copy link
Owner

For computationally expensive operations, it'd be good to have:

@resolve("options", (props) => {
  /* Something that does lots of processing */
}, {
  shouldComponentUpdate: function(props) {
    return this.props.choices.length !== props.choices.length;
  }
})
class ChoiceWidget extends React.Component {
  ...

Otherwise, all of the work gets done & the main component has no chance to bypass the effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant