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.pull/21833/head
parent
53ead43e2b
commit
107eb974d4
|
@ -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() {
|
render() {
|
||||||
const {itemHeight, items, renderItem} = this.props;
|
const {itemHeight, items, renderItem} = this.props;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue