Remove unused config optional hook (#39957)
Co-authored-by: Kit Langton <kit.langton@gmail.com>
This commit is contained in:
parent
97f5fb3399
commit
b5afaed053
1 changed files with 0 additions and 4 deletions
|
|
@ -262,7 +262,3 @@ export function useConfig() {
|
||||||
if (!value) throw new Error("ConfigProvider is missing")
|
if (!value) throw new Error("ConfigProvider is missing")
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
|
||||||
export function useConfigOptional() {
|
|
||||||
return useContext(ConfigContext)
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue