fix: robust mobile suspend and auth recovery
This commit is contained in:
@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user