fix: robust mobile suspend and auth recovery

This commit is contained in:
2026-03-04 00:51:32 -05:00
parent bdfcd55370
commit 90bb93be17
11 changed files with 257 additions and 47 deletions

View File

@ -144,15 +144,15 @@ function handleOutsideClick(e: MouseEvent) {
if (!target.closest('.route-selector')) dropdownOpen.value = false
}
async function fetchData() {
await routeStore.loadRoutes()
async function fetchData(isBackground = false) {
await routeStore.loadRoutes(undefined, false, isBackground)
if (localSelectedRouteId.value) {
await scheduleStore.loadRouteSchedules(localSelectedRouteId.value)
await scheduleStore.loadRouteSchedules(localSelectedRouteId.value, isBackground)
}
}
function handleRefocus() {
fetchData()
fetchData(true)
}
onMounted(async () => {