1
0
mirror of https://github.com/flarum/core.git synced 2025-02-25 19:53:48 +01: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 153a5b7ce4
commit 3467aa9e90

View File

@ -343,14 +343,14 @@ class PostStream extends mixin(Component, evented) {
};
redraw();
this.pagesLoading++;
this.loadPageTimeouts[start] = setTimeout(() => {
this.loadRange(start, end).then(() => {
redraw();
this.pagesLoading--;
});
}, this.pagesLoading ? 1000 : 0);
this.pagesLoading++;
}
/**