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