mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-12-05 03:08:14 +00:00
feat(weather-widget): reduce update interval
This commit is contained in:
@@ -104,7 +104,7 @@ const WeatherWidget = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
updateWeather();
|
updateWeather();
|
||||||
const intervalId = setInterval(updateWeather, 2 * 60 * 1000);
|
const intervalId = setInterval(updateWeather, 30 * 1000);
|
||||||
return () => clearInterval(intervalId);
|
return () => clearInterval(intervalId);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user