Fix potential "Should never unset includeInLayout" invariant

Reviewed By: devknoll

Differential Revision: D3194174

fb-gh-sync-id: 67d065ea90f8416a5fc7e3651c68350f895f9639
fbshipit-source-id: 67d065ea90f8416a5fc7e3651c68350f895f9639
This commit is contained in:
Spencer Ahrens 2016-04-19 13:54:54 -07:00 committed by Facebook Github Bot 1
parent ec5dfbf8c7
commit ecae44aaae
1 changed files with 1 additions and 2 deletions

View File

@ -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]}