From 50fb5543c993440bbffca37aa6e511e744363a3f Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Mon, 23 Jul 2018 23:21:32 +0200 Subject: [PATCH] Increased page size for favorites fetch to reduce HTTP roundtrip --- front/src/store/favorites.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/src/store/favorites.js b/front/src/store/favorites.js index 5983d1805..5d092a72d 100644 --- a/front/src/store/favorites.js +++ b/front/src/store/favorites.js @@ -56,7 +56,8 @@ export default { fetch ({dispatch, state, commit, rootState}, url) { // will fetch favorites by batches from API to have them locally let params = { - user: rootState.auth.profile.id + user: rootState.auth.profile.id, + page_size: 50 } url = url || 'favorites/tracks/' return axios.get(url, {params: params}).then((response) => {