feat: add loading state to view
Some checks failed
TrafficCue CI / check (push) Failing after 57s
TrafficCue CI / build (push) Successful in 1m38s
TrafficCue CI / build-android (push) Successful in 15m1s

This commit is contained in:
2025-09-16 18:22:48 +02:00
parent 222216f172
commit 28796ee267
7 changed files with 105 additions and 14 deletions

View File

@ -27,6 +27,7 @@
import InternetAccess from "../info/InternetAccess.svelte";
import RestaurantInfo from "../info/RestaurantInfo.svelte";
import { m } from "$lang/messages";
import { onMount } from "svelte";
// let { feature }: { feature: Feature } = $props();
@ -81,9 +82,16 @@
);
});
}
onMount(() => {
view.loading = true;
})
</script>
{#await fetchPOI(lat, lng, 20)}
{#await fetchPOI(lat, lng, 20).then(r => {
view.loading = false;
return r;
})}
<SidebarHeader
onback={() => {
pin.liftPin();