From da1fcb646fa7403648b90eb858ca354e1af73523 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Wed, 12 Oct 2022 13:42:54 -0500 Subject: [PATCH] Fix infinite re-render on home page --- web/hooks/use-global-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/hooks/use-global-config.ts b/web/hooks/use-global-config.ts index 0eba474e..8653a731 100644 --- a/web/hooks/use-global-config.ts +++ b/web/hooks/use-global-config.ts @@ -7,6 +7,6 @@ export const useGlobalConfig = () => { useEffect(() => { listenForGlobalConfig(setGlobalConfig) - }, [globalConfig]) + }, []) return globalConfig }