From 4be2f12a14ee8b571c19ac82af20067c25a66d4f Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 23 Nov 2021 14:25:22 +0100 Subject: [PATCH] subscribe before calling list.length --- src/platform/web/ui/general/LazyListView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/web/ui/general/LazyListView.ts b/src/platform/web/ui/general/LazyListView.ts index deceac08..a29e434c 100644 --- a/src/platform/web/ui/general/LazyListView.ts +++ b/src/platform/web/ui/general/LazyListView.ts @@ -76,10 +76,10 @@ export class LazyListView extends ListView { 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); }