From 15f78fb18e87e7b72b66d6f22cac0fe6e0d7436a Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 18 Aug 2023 17:47:00 +0200 Subject: [PATCH] fix: add empty dependency array to useEffect --- src/pages/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 309f99f..0134a5b 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -95,7 +95,7 @@ export default function Example() { }; fetchJsonData(jsonURL); - }); + }, []); const activateSidebar = (param: any) => { setOpen(true);