From 2091888d060d2f819783c8c54c8c82ed556c6360 Mon Sep 17 00:00:00 2001 From: Julien Huang Date: Sun, 13 Oct 2024 22:26:07 +0200 Subject: [PATCH] perf(nuxt): remove unneeded second call to `useNuxtApp` (#29514) --- packages/nuxt/src/app/composables/component.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/nuxt/src/app/composables/component.ts b/packages/nuxt/src/app/composables/component.ts index e8bd93e20c..914533e757 100644 --- a/packages/nuxt/src/app/composables/component.ts +++ b/packages/nuxt/src/app/composables/component.ts @@ -56,7 +56,6 @@ export const defineNuxtComponent: typeof defineComponent = } if (options.head) { - const nuxtApp = useNuxtApp() useHead(typeof options.head === 'function' ? () => options.head(nuxtApp) : options.head) }