Merge pull request #2636 from matrix-org/bwindels/fixlazyrender2

always rerender room tiles
This commit is contained in:
Bruno Windels 2019-02-14 13:45:27 +01:00 committed by GitHub
commit fbb0f07edb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;