Increased page size for favorites fetch to reduce HTTP roundtrip

This commit is contained in:
Eliot Berriot 2018-07-23 23:21:32 +02:00
parent 1f08475017
commit 50fb5543c9
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 2 additions and 1 deletions

View File

@ -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) => {