subscribe before calling list.length

This commit is contained in:
Bruno Windels 2021-11-23 14:25:22 +01:00
parent c64a9c1e23
commit 4be2f12a14

View file

@ -76,10 +76,10 @@ export class LazyListView<T, V extends IView> extends ListView<T, V> {
if (!this._list) {
return;
}
this._subscription = this._list.subscribe(this);
const visibleRange = this._getVisibleRange();
this.renderRange = visibleRange.expand(this.overflowItems);
this._childInstances = [];
this._subscription = this._list.subscribe(this);
this.reRenderFullRange(this.renderRange);
}