mirror of
https://github.com/flarum/core.git
synced 2025-07-21 08:41:17 +02:00
Start loading the next page of posts immediately
This commit is contained in:
@@ -343,14 +343,14 @@ class PostStream extends mixin(Component, evented) {
|
|||||||
};
|
};
|
||||||
redraw();
|
redraw();
|
||||||
|
|
||||||
this.pagesLoading++;
|
|
||||||
|
|
||||||
this.loadPageTimeouts[start] = setTimeout(() => {
|
this.loadPageTimeouts[start] = setTimeout(() => {
|
||||||
this.loadRange(start, end).then(() => {
|
this.loadRange(start, end).then(() => {
|
||||||
redraw();
|
redraw();
|
||||||
this.pagesLoading--;
|
this.pagesLoading--;
|
||||||
});
|
});
|
||||||
}, this.pagesLoading ? 1000 : 0);
|
}, this.pagesLoading ? 1000 : 0);
|
||||||
|
|
||||||
|
this.pagesLoading++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user