mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Remove code from loadList
We don't need this method so best to leave it empty. Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
c0f7f0a8f1
commit
d4e923f9de
@ -168,6 +168,8 @@ export class LazyListView extends ListView {
|
|||||||
|
|
||||||
mount() {
|
mount() {
|
||||||
const root = super.mount();
|
const root = super.mount();
|
||||||
|
this._subscription = this._list.subscribe(this);
|
||||||
|
this._childInstances = [];
|
||||||
this._parent = el("div", {className: "LazyListParent"}, root);
|
this._parent = el("div", {className: "LazyListParent"}, root);
|
||||||
/*
|
/*
|
||||||
Hooking to scroll events can be expensive.
|
Hooking to scroll events can be expensive.
|
||||||
@ -181,17 +183,12 @@ export class LazyListView extends ListView {
|
|||||||
update(attributes) {
|
update(attributes) {
|
||||||
this._renderRange = null;
|
this._renderRange = null;
|
||||||
super.update(attributes);
|
super.update(attributes);
|
||||||
|
this._childInstances = [];
|
||||||
this._initialRender();
|
this._initialRender();
|
||||||
}
|
}
|
||||||
|
|
||||||
loadList() {
|
loadList() {
|
||||||
if (!this._list) { return; }
|
// We don't render the entire list; so nothing to see here.
|
||||||
this._subscription = this._list.subscribe(this);
|
|
||||||
this._childInstances = [];
|
|
||||||
/*
|
|
||||||
super.loadList() would render the entire list at this point.
|
|
||||||
We instead lazy render a part of the list in _renderIfNeeded
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_removeChild(child) {
|
_removeChild(child) {
|
||||||
|
Loading…
Reference in New Issue
Block a user