forked from mystiq/hydrogen-web
subscribe before calling list.length
This commit is contained in:
parent
c64a9c1e23
commit
4be2f12a14
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue