forked from mystiq/hydrogen-web
actually check the promise
This commit is contained in:
parent
df8d884d91
commit
4044ac56c5
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ export class TimelineList extends ListView {
|
||||||
}
|
}
|
||||||
|
|
||||||
async _loadAtTopWhile(predicate) {
|
async _loadAtTopWhile(predicate) {
|
||||||
|
if (this._topLoadingPromise) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
while (predicate()) {
|
while (predicate()) {
|
||||||
// fill, not enough content to fill timeline
|
// fill, not enough content to fill timeline
|
||||||
|
|
Loading…
Reference in a new issue