From ecae44aaae2333fb8e0b7dad94eb54dc015b1bb6 Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Tue, 19 Apr 2016 13:54:54 -0700 Subject: [PATCH] Fix potential "Should never unset includeInLayout" invariant Reviewed By: devknoll Differential Revision: D3194174 fb-gh-sync-id: 67d065ea90f8416a5fc7e3651c68350f895f9639 fbshipit-source-id: 67d065ea90f8416a5fc7e3651c68350f895f9639 --- Libraries/Experimental/WindowedListView.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/Experimental/WindowedListView.js b/Libraries/Experimental/WindowedListView.js index 8b84322eb..c76ec4430 100644 --- a/Libraries/Experimental/WindowedListView.js +++ b/Libraries/Experimental/WindowedListView.js @@ -443,8 +443,7 @@ class WindowedListView extends React.Component { rowIndex={idx} onNewLayout={this._onNewLayout} onWillUnmount={this._onWillUnmountCell} - includeInLayout={this.props.disableIncrementalRendering || - (this._rowFrames[idx] && this._rowFrames[idx].offscreenLayoutDone)} + includeInLayout={this._rowFrames[idx] && this._rowFrames[idx].offscreenLayoutDone} onProgressChange={this._onProgressChange} asyncRowPerfEventName={this.props.asyncRowPerfEventName} data={this.props.data[idx]}