Test fix race-condition for new notifications

This commit is contained in:
Lim Chee Aun 2024-03-07 16:06:08 +08:00
parent cf1c10b338
commit 061d769901

View file

@ -221,6 +221,9 @@ function Notifications({ columnMode }) {
lastHiddenTime.current = Date.now(); lastHiddenTime.current = Date.now();
} }
unsub = subscribeKey(states, 'notificationsShowNew', (v) => { unsub = subscribeKey(states, 'notificationsShowNew', (v) => {
if (uiState === 'loading') {
return;
}
if (v) { if (v) {
loadUpdates(); loadUpdates();
} }