N
Nuxt7mo ago
rampup_

useHead not working in server components

Not sure if it is a bug or a misconception on my side, but changing properties in the <head> does not seem to work in a .server. component. I didn't find any correlating issue online, therefore I wonder, if the error is maybe on my side. What do I want do achieve: I request a headless cms and fill the content dynamically. Works like a charm. Also can I change the <head> properties with the documented solutions. If I change it to a .server. component, I lost control over the head. Why? PS: There is no error output and neither <head> in template nor useHead, nor useSeoMeta nor UseServerSeoMeta are working.
2 Replies
manniL
manniL7mo ago
I'd raise an issue in the nuxt repo 👍
harlan
harlan7mo ago
Seems like a bug, an issue on github with a stackblitz reproduction would be quickest way to get it solved
Want results from more Discord servers?
Add your server