Explorer - fetch stats on first load
This commit is contained in:
parent
60363dd3d1
commit
d26e2b85b1
|
@ -112,7 +112,8 @@ const IndexPage = ({ location }: PageProps) => {
|
|||
}
|
||||
|
||||
useEffect(() => {
|
||||
statsInterval = setInterval(fetchStats, 30000)
|
||||
fetchStats() // fetchStats on first load
|
||||
statsInterval = setInterval(fetchStats, 30000) // fetch every 30 seconds
|
||||
|
||||
gsap.registerPlugin(ScrollTrigger);
|
||||
|
||||
|
|
Loading…
Reference in New Issue