perf(report): avoid duplicate initial stats sync in dashboard loop
This commit is contained in:
@@ -551,7 +551,7 @@ const mobileModules = computed(() => [
|
||||
])
|
||||
|
||||
const REPORT_SYNC_STATS_EVERY = 3
|
||||
let reportRefreshTick = 0
|
||||
let reportRefreshTick = 1
|
||||
|
||||
async function refreshAll(options = {}) {
|
||||
const showLoading = options.showLoading ?? true
|
||||
@@ -647,7 +647,7 @@ function onVisibilityChange() {
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
refreshAll({ showLoading: false, forceStatsSync: true })
|
||||
refreshAll({ showLoading: false })
|
||||
.catch(() => {})
|
||||
.finally(() => {
|
||||
scheduleRefreshLoop()
|
||||
|
||||
Reference in New Issue
Block a user