Verified Commit 50fb5543 authored by Agate's avatar Agate 💬

Increased page size for favorites fetch to reduce HTTP roundtrip

parent 1f084750
...@@ -56,7 +56,8 @@ export default { ...@@ -56,7 +56,8 @@ export default {
fetch ({dispatch, state, commit, rootState}, url) { fetch ({dispatch, state, commit, rootState}, url) {
// will fetch favorites by batches from API to have them locally // will fetch favorites by batches from API to have them locally
let params = { let params = {
user: rootState.auth.profile.id user: rootState.auth.profile.id,
page_size: 50
} }
url = url || 'favorites/tracks/' url = url || 'favorites/tracks/'
return axios.get(url, {params: params}).then((response) => { return axios.get(url, {params: params}).then((response) => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment