Reduce buffer time between page visibilities

This commit is contained in:
Lim Chee Aun 2023-11-06 23:27:58 +08:00
parent bca205182e
commit b027967168

View file

@ -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,
});