feat: add loading state to view
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user