From d26e2b85b17153af99a21d5e50e24673332e20da Mon Sep 17 00:00:00 2001 From: Justin Schuldt Date: Mon, 28 Feb 2022 17:15:00 -0600 Subject: [PATCH] Explorer - fetch stats on first load --- explorer/src/pages/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/explorer/src/pages/index.tsx b/explorer/src/pages/index.tsx index 07e93319..d57f9c3f 100644 --- a/explorer/src/pages/index.tsx +++ b/explorer/src/pages/index.tsx @@ -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);