From 061d7699018c20b2969df9e39a85c8bc3dc72be3 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 7 Mar 2024 16:06:08 +0800 Subject: [PATCH] Test fix race-condition for new notifications --- src/pages/notifications.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/notifications.jsx b/src/pages/notifications.jsx index 0ffc309..ed3ce2d 100644 --- a/src/pages/notifications.jsx +++ b/src/pages/notifications.jsx @@ -221,6 +221,9 @@ function Notifications({ columnMode }) { lastHiddenTime.current = Date.now(); } unsub = subscribeKey(states, 'notificationsShowNew', (v) => { + if (uiState === 'loading') { + return; + } if (v) { loadUpdates(); }