fix: start freshness ticker after first data load (#172)
This commit is contained in:
parent
1b55ae8ac8
commit
a8f62e2357
1 changed files with 2 additions and 2 deletions
|
|
@ -509,8 +509,8 @@ async function fetchStats() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(async () => {
|
||||||
fetchStats();
|
await fetchStats();
|
||||||
fetchEthPrice();
|
fetchEthPrice();
|
||||||
refreshInterval = window.setInterval(fetchStats, 30000); // Refresh every 30 seconds
|
refreshInterval = window.setInterval(fetchStats, 30000); // Refresh every 30 seconds
|
||||||
ethPriceInterval = window.setInterval(fetchEthPrice, ETH_PRICE_CACHE_MS);
|
ethPriceInterval = window.setInterval(fetchEthPrice, ETH_PRICE_CACHE_MS);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue