Lazy-load the user list to improve perf
Still slow when typing due to adding 1000 tiles to the DOM, but it is at least a lot better than before (which would stutter on ANY change to the member list)
This commit is contained in:
parent
91c224aaf4
commit
391c653d24
3 changed files with 19 additions and 9 deletions
|
@ -50,6 +50,12 @@ var SearchableEntityList = React.createClass({
|
|||
};
|
||||
},
|
||||
|
||||
componentWillUnmount: function() {
|
||||
// pretend the query box was blanked out else filters could still be
|
||||
// applied to other components which rely on onQueryChanged.
|
||||
this.props.onQueryChanged("");
|
||||
},
|
||||
|
||||
/**
|
||||
* Public-facing method to set the input query text to the given input.
|
||||
* @param {string} input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue