From d9b6759e09db3e8c712833a164e44f2b193fec62 Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Fri, 17 Nov 2023 19:14:07 +0000 Subject: [PATCH] tweak reload logic --- react/fastui/hooks/dev.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/react/fastui/hooks/dev.tsx b/react/fastui/hooks/dev.tsx index 39003f95..55dadba2 100644 --- a/react/fastui/hooks/dev.tsx +++ b/react/fastui/hooks/dev.tsx @@ -25,14 +25,13 @@ export const DevReloadProvider: FC<{ children: ReactNode; enabled: boolean }> = if (!listening || failCount >= 4) { return value } - console.log('dev reload...') + console.debug('dev reload...') setValue(value) } } if (enabled && !devConnected) { devConnected = true - listening = true listen().then((value) => { console.debug('dev reload disconnected.') setValue(value)