mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 22:26:57 +01:00
Test fix race-condition for new notifications
This commit is contained in:
parent
cf1c10b338
commit
061d769901
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue