mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
chore(app): improved API refresh times at about 31-32s
This commit is contained in:
@@ -68,7 +68,7 @@ export const useApiStore = defineStore('apiStore', {
|
||||
// Active data fefresh
|
||||
if (t >= this.nextUpdateTime) {
|
||||
this.fetchActiveData();
|
||||
this.nextUpdateTime = t + 20000;
|
||||
this.nextUpdateTime = t + 31000;
|
||||
}
|
||||
|
||||
window.requestAnimationFrame(this.updateTick);
|
||||
|
||||
@@ -61,8 +61,7 @@ const intervalId = ref(-1);
|
||||
|
||||
onActivated(() => {
|
||||
fetchPlayerData();
|
||||
|
||||
intervalId.value = setInterval(fetchPlayerData, 30000);
|
||||
intervalId.value = setInterval(fetchPlayerData, 32000);
|
||||
});
|
||||
|
||||
onDeactivated(() => {
|
||||
|
||||
Reference in New Issue
Block a user