perf(nuxt): remove unneeded second call to useNuxtApp (#29514)

This commit is contained in:
Julien Huang 2024-10-13 22:26:07 +02:00 committed by GitHub
parent d334a9997c
commit 2091888d06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,7 +56,6 @@ export const defineNuxtComponent: typeof defineComponent =
} }
if (options.head) { if (options.head) {
const nuxtApp = useNuxtApp()
useHead(typeof options.head === 'function' ? () => options.head(nuxtApp) : options.head) useHead(typeof options.head === 'function' ? () => options.head(nuxtApp) : options.head)
} }