1
0
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:
Toby Zerner
2015-07-27 12:12:07 +09:30
parent 798bcaa5f4
commit 0691e493a5

View File

@@ -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++;
} }
/** /**