fix: Deprecated useAppConfig in favour of getAppConfig (#2487)
Co-authored-by: Gliches <nishumurmu017@gmail.com> Co-authored-by: Aaron <aaronklinker1@gmail.com>
This commit is contained in:
@@ -15,8 +15,16 @@ export function getAppConfig(): WxtAppConfig {
|
||||
/**
|
||||
* Alias for {@link getAppConfig}.
|
||||
*
|
||||
* @deprecated Use {@link getAppConfig} instead. Same function, different name.
|
||||
* @see https://wxt.dev/guide/essentials/config/runtime.html
|
||||
*/
|
||||
export function useAppConfig(): WxtAppConfig {
|
||||
// After v1.0 this function will be removed, and migrate to use only `getAppConfig` instead.
|
||||
if (import.meta.env.DEV) {
|
||||
console.warn(
|
||||
'[wxt] `useAppConfig` is deprecated. Please use `getAppConfig` instead.',
|
||||
);
|
||||
}
|
||||
|
||||
return getAppConfig();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user