From b027967168ee63df4e1a943266028408296debeb Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Mon, 6 Nov 2023 23:27:58 +0800 Subject: [PATCH] Reduce buffer time between page visibilities --- src/pages/notifications.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/notifications.jsx b/src/pages/notifications.jsx index 6c48ec2a..f46c98a4 100644 --- a/src/pages/notifications.jsx +++ b/src/pages/notifications.jsx @@ -216,7 +216,8 @@ function Notifications({ columnMode }) { let unsub; if (visible) { const timeDiff = Date.now() - lastHiddenTime.current; - if (!lastHiddenTime.current || timeDiff > 1000 * 60) { + if (!lastHiddenTime.current || timeDiff > 1000 * 3) { + // 3 seconds loadUpdates({ disableIdleCheck: true, });