From f9d53d552462e7c91f3f2544f2279cee57656e3b Mon Sep 17 00:00:00 2001 From: corsacca Date: Mon, 14 Sep 2026 12:17:12 +0100 Subject: [PATCH] refresh homepage statistics on the client --- app/pages/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/pages/index.vue b/app/pages/index.vue index 2b37c0dc..00255684 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -19,8 +19,11 @@ function openVideo() { videoModalRef.value?.open() } -const { unengagedPeopleGroupsFormatted, totalPeopleGroupsFormatted, unengagedPopulationMillionsFormatted, ensureLoaded } = usePrayerStatistics() +const { unengagedPeopleGroupsFormatted, totalPeopleGroupsFormatted, unengagedPopulationMillionsFormatted, ensureLoaded, reload } = usePrayerStatistics() await ensureLoaded() +// This page is prerendered, so its payload carries build-time counts; refetch +// on the client so the figures track the live API between deploys. +onMounted(() => reload()) // Locale separators with Latin digits, matching usePrayerStatistics — for the // bullseye's static figures (e.g. 3.9 → "3,9" and 6602 → "6.602" in pt).