Reduce interval to 15s
This commit is contained in:
parent
f73a942b61
commit
6e3494488a
|
@ -9,7 +9,7 @@ import useInterval from '../utils/useInterval';
|
||||||
import usePageVisibility from '../utils/usePageVisibility';
|
import usePageVisibility from '../utils/usePageVisibility';
|
||||||
|
|
||||||
const STREAMING_TIMEOUT = 1000 * 3; // 3 seconds
|
const STREAMING_TIMEOUT = 1000 * 3; // 3 seconds
|
||||||
const POLL_INTERVAL = 1000 * 60; // 1 minute
|
const POLL_INTERVAL = 15_000; // 15 seconds
|
||||||
|
|
||||||
export default memo(function BackgroundService({ isLoggedIn }) {
|
export default memo(function BackgroundService({ isLoggedIn }) {
|
||||||
// Notifications service
|
// Notifications service
|
||||||
|
|
|
@ -36,7 +36,7 @@ function Timeline({
|
||||||
boostsCarousel,
|
boostsCarousel,
|
||||||
fetchItems = () => {},
|
fetchItems = () => {},
|
||||||
checkForUpdates = () => {},
|
checkForUpdates = () => {},
|
||||||
checkForUpdatesInterval = 60_000, // 1 minute
|
checkForUpdatesInterval = 15_000, // 15 seconds
|
||||||
headerStart,
|
headerStart,
|
||||||
headerEnd,
|
headerEnd,
|
||||||
timelineStart,
|
timelineStart,
|
||||||
|
|
Loading…
Reference in a new issue