mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
always rerender
as not all state that goes into rendering comes from state or props, we shouldn't be blocking rendering at all This might rerender a few times more, but it shouldn't be worse than what was there before the redesigned roomlist.
This commit is contained in:
parent
53ead43e2b
commit
107eb974d4
1 changed files with 0 additions and 6 deletions
|
@ -73,12 +73,6 @@ export default class LazyRenderList extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
shouldComponentUpdate(nextProps, nextState) {
|
||||
const itemsChanged = nextProps.items !== this.props.items;
|
||||
const rangeChanged = nextState.renderRange !== this.state.renderRange;
|
||||
return itemsChanged || rangeChanged;
|
||||
}
|
||||
|
||||
render() {
|
||||
const {itemHeight, items, renderItem} = this.props;
|
||||
|
||||
|
|
Loading…
Reference in a new issue