From b1fd38ffaa5733f901727dbf978a5c801d9d06ef Mon Sep 17 00:00:00 2001 From: rcacheira Date: Mon, 12 Mar 2018 10:23:54 +0000 Subject: [PATCH] rendering ListView when some of the render functions change --- components/ListView.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/ListView.js b/components/ListView.js index 1ea88b6e..2d9ac969 100644 --- a/components/ListView.js +++ b/components/ListView.js @@ -117,7 +117,11 @@ class ListView extends React.Component { shouldComponentUpdate(nextProps, nextState) { return (nextProps.data !== this.props.data) || (nextProps.loading !== this.props.loading) || - (nextState.status !== this.state.status); + (nextState.status !== this.state.status) || + (nextProps.renderRow !== this.props.renderRow) || + (nextProps.renderHeader !== this.props.renderHeader) || + (nextProps.renderFooter !== this.props.renderFooter) || + (nextProps.renderSectionHeader !== this.props.renderSectionHeader) ; } componentWillUnmount() {