ericclemmons / ericclemmons/react-resolver

Support instance methods on @resolve

Open
#84 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
1.6k
Forks
52
PR merge metrics
No merged PRs in 30d

Description

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

``` js
@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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.