Skip to content

Commit

Permalink
Merge pull request #241 from vonovak/patch-6
Browse files Browse the repository at this point in the history
add ref modifier to searchResults
  • Loading branch information
mweststrate committed Mar 3, 2020
2 parents 67b42e6 + 1778933 commit b87de4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -120,7 +120,7 @@ This is useful to replace one promise based observable with another, without goi
```javascript
@observer
class SearchResults extends React.Component {
@observable searchResults
@observable.ref searchResults

componentDidUpdate(nextProps) {
if (nextProps.query !== this.props.query)
Expand Down

0 comments on commit b87de4b

Please sign in to comment.