updateWillBeHiddenItemHeightsAndState(firstShownItemIndex, lastShownItemIndex) {
		let i = this.getState().firstShownItemIndex
		while (i <= this.getState().lastShownItemIndex) {
			if (i >= firstShownItemIndex && i <= lastShownItemIndex) {
				// The item's still visible.
			} else {
				// Update item's height before hiding it
				// because the height of the item may have changed
				// while it was visible.
				this.updateItemHeight(i)
				// // Update item's state because it's about to be hidden.
				// if (this.getItemState) {
				// 	this.getState().itemStates[i] = this.getItemState(
				// 		this.getState().items[i],
				// 		i,
				// 		this.getState().items
				// 	)
				// }
			}
			i++
		}
	}
/**
	 * Updates the heights of items to be hidden on next render.
	 * For example, a user could click a "Show more" button,
	 * or an "Expand YouTube video" button, which would result
	 * in the list item height changing and `this.itemHeights[i]`
	 * being stale, so it's updated here when hiding the item.
	 */
Updates the heights of items to be hidden on next render.
For example, a user could click a "Show more" button,
or an "Expand YouTube video" button, which would result
in the list item height changing and `this.itemHeights[i]`
being stale, so it's updated here when hiding the item.
Updates the heights of items to be hidden on next render . For example a user could click a " Show more " button or an " Expand YouTube video " button which would result in the list item height changing and ` this . itemHeights [ i ] ` being stale so it ' s updated here when hiding the item .
updateWillBeHiddenItemHeightsAndState(firstShownItemIndex, lastShownItemIndex) {
		let i = this.getState().firstShownItemIndex
		while (i <= this.getState().lastShownItemIndex) {
			if (i >= firstShownItemIndex && i <= lastShownItemIndex) {
			} else {
				this.updateItemHeight(i)
			}
			i++
		}
	}
updateWillBeHiddenItemHeightsAndState ( firstShownItemIndex , lastShownItemIndex ) { let i = this . getState ( ) . firstShownItemIndex while ( i <= this . getState ( ) . lastShownItemIndex ) { if ( i >= firstShownItemIndex && i <= lastShownItemIndex ) { } else { this . updateItemHeight ( i ) } i ++ } }
Updates the heights of items to be hidden on next render.
Updates the heights of items to be hidden on next render .
// The item's still visible. // Update item's height before hiding it // because the height of the item may have changed // while it was visible. // // Update item's state because it's about to be hidden. // if (this.getItemState) { // 	this.getState().itemStates[i] = this.getItemState( // 		this.getState().items[i], // 		i, // 		this.getState().items // 	) // }