From 166104bbacc7be7e25e38d6a7064ebfdeed3b037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ign=C3=A1cio=20Fontoura=20Solla?= Date: Fri, 1 May 2026 10:21:55 -0300 Subject: [PATCH] Fetch live count on mount to override stale initialCount --- src/components/SignatureCounter.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/SignatureCounter.tsx b/src/components/SignatureCounter.tsx index 75109cf2..586112b4 100644 --- a/src/components/SignatureCounter.tsx +++ b/src/components/SignatureCounter.tsx @@ -73,6 +73,10 @@ export const SignatureCounter = ({ } } + // Busca o valor real imediatamente ao montar, + // pois o initialCount pode estar defasado (página gerada estaticamente). + refetch() + const interval = setInterval(() => { if (document.visibilityState === 'visible') refetch() }, POLL_INTERVAL_MS)