diff --git a/packages/nuxt3/src/head/runtime/composables.ts b/packages/nuxt3/src/head/runtime/composables.ts index 917ea47358..13b7ca57b7 100644 --- a/packages/nuxt3/src/head/runtime/composables.ts +++ b/packages/nuxt3/src/head/runtime/composables.ts @@ -16,16 +16,8 @@ export function useHead (meta: MetaObject | ComputedGetter) { useNuxtApp()._useHead(resolvedMeta) } -const _warned = {} -const warnOnce = (id: string, message: string) => { - if (!_warned[id]) { - console.warn(message) - _warned[id] = true - } -} // TODO: remove useMeta support when Nuxt 3 is stable -/** @deprecated */ +/** @deprecated Please use new `useHead` composable instead */ export function useMeta (meta: MetaObject | ComputedGetter) { - warnOnce('useMeta', '[meta] useMeta has been renamed to useHead.') return useHead(meta) }