mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-10 20:17:32 +01:00
subscribe before calling list.length
This commit is contained in:
parent
c64a9c1e23
commit
4be2f12a14
@ -76,10 +76,10 @@ export class LazyListView<T, V extends IView> extends ListView<T, V> {
|
|||||||
if (!this._list) {
|
if (!this._list) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this._subscription = this._list.subscribe(this);
|
||||||
const visibleRange = this._getVisibleRange();
|
const visibleRange = this._getVisibleRange();
|
||||||
this.renderRange = visibleRange.expand(this.overflowItems);
|
this.renderRange = visibleRange.expand(this.overflowItems);
|
||||||
this._childInstances = [];
|
this._childInstances = [];
|
||||||
this._subscription = this._list.subscribe(this);
|
|
||||||
this.reRenderFullRange(this.renderRange);
|
this.reRenderFullRange(this.renderRange);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user