From 107eb974d43fb6af795a9af20df6eb15c8bcf985 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 14 Feb 2019 13:28:22 +0100 Subject: [PATCH] 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. --- src/components/views/elements/LazyRenderList.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/components/views/elements/LazyRenderList.js b/src/components/views/elements/LazyRenderList.js index 1c1cc127d6..d7d2a0ab99 100644 --- a/src/components/views/elements/LazyRenderList.js +++ b/src/components/views/elements/LazyRenderList.js @@ -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;