Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(dashboard): note a first connect may find cached threads
Yudhi Armyndharisb6a9a7218ab9
diff --git a/dashboard/src/utils/reconnectState.ts b/dashboard/src/utils/reconnectState.tsindex b6277342f..3498ae863 100644--- a/dashboard/src/utils/reconnectState.ts+++ b/dashboard/src/utils/reconnectState.ts@@ -21,7 +21,8 @@ export interface ReconnectDecision {* chat message cache uses staleTime:Infinity, so it won't refetch on its own; the caller invalidates* on `invalidate: true` to force a refresh of the thread the gap left stale.*- * - First connect (hadConnected false): no invalidate — nothing is cached yet to refresh.+ * - First connect (hadConnected false): no invalidate. The cache is not necessarily empty (a remount+ * within gcTime keeps the threads read before it); refreshing those is not this decision's job.* - Disconnect after the first connect: mark a gap (wasDisconnected), no invalidate.* - Connect with a marked gap: RECONNECT — invalidate, then clear the gap marker.* - Disconnect before any connect (transient noise on mount): no gap marked (avoid a spurious first-