Fix infinite re-render on home page
This commit is contained in:
parent
1d618ba337
commit
da1fcb646f
|
@ -7,6 +7,6 @@ export const useGlobalConfig = () => {
|
|||
|
||||
useEffect(() => {
|
||||
listenForGlobalConfig(setGlobalConfig)
|
||||
}, [globalConfig])
|
||||
}, [])
|
||||
return globalConfig
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user