Return listener
This commit is contained in:
parent
04a126707b
commit
18042cd4d1
|
@ -6,7 +6,7 @@ export const useGlobalConfig = () => {
|
|||
const [globalConfig, setGlobalConfig] = useState<GlobalConfig | null>(null)
|
||||
|
||||
useEffect(() => {
|
||||
listenForGlobalConfig(setGlobalConfig)
|
||||
return listenForGlobalConfig(setGlobalConfig)
|
||||
}, [])
|
||||
return globalConfig
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user