Reduce buffer time between page visibilities
This commit is contained in:
parent
bca205182e
commit
b027967168
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue