From 396cf2e0e54dac80c1378ab3453764f210d40478 Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Thu, 21 Nov 2024 16:13:54 +0100 Subject: [PATCH] Update SanityLive.tsx --- next-enterprise/src/app/SanityLive.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/next-enterprise/src/app/SanityLive.tsx b/next-enterprise/src/app/SanityLive.tsx index 3108467..ed28aad 100644 --- a/next-enterprise/src/app/SanityLive.tsx +++ b/next-enterprise/src/app/SanityLive.tsx @@ -15,9 +15,11 @@ export function SanityLive() { if (event.type === 'welcome') { console.info('Sanity is live with automatic refresh of published content') } else if (event.type === 'message') { + console.log(' schedule refresh') setTimeout(() => { if (signal.aborted) return router.refresh() + console.log(' refreshing') }, 1_000) } else if (event.type === 'restart') { router.refresh()