<InfiniteLoader isRowLoaded={isRowLoaded} loadMoreRows={fetchMoreData} rowCount={totalCount}>
{({ onRowsRendered, registerChild }) => (
<AutoSizer>
{({ height, width }) => (
<List
ref={registerChild}
height={height}
width={width}
onRowsRendered={onRowsRendered}
rowCount={totalCount}
rowHeight={setHeight}
rowRenderer={rowRenderer}
/>
)}
</AutoSizer>
)}
</InfiniteLoader>