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(() => {
|
||||
fetchStats();
|
||||
onMounted(async () => {
|
||||
await fetchStats();
|
||||
fetchEthPrice();
|
||||
refreshInterval = window.setInterval(fetchStats, 30000); // Refresh every 30 seconds
|
||||
ethPriceInterval = window.setInterval(fetchEthPrice, ETH_PRICE_CACHE_MS);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue