Load contributions from cache if present

And then fetch more from network. Also, only load 30 from network before
first render (with nothing cached), then load more after the page has
rendered.
This commit is contained in:
2020-05-28 13:59:10 +02:00
parent 69141a31c4
commit d4b546bfcd
2 changed files with 15 additions and 5 deletions
+1
View File
@@ -27,6 +27,7 @@ export default Route.extend({
if (this.kredits.contributorsNeedFetch) {
schedule('afterRender', this.kredits, this.kredits.fetchContributors);
}
schedule('afterRender', this.kredits, this.kredits.fetchContributions);
});
}
});