Increased page size for favorites fetch to reduce HTTP roundtrip
This commit is contained in:
parent
1f08475017
commit
50fb5543c9
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue