Replies: 3 comments
-
| 
         Same here!  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         @harlan-zw Could you comment on what is going on here, and whether using   | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         The context issue is solved in v2 which is currently in alpha. There's a migration guide here: https://unhead-unjs-io.nuxt.dev/docs/migration  | 
  
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When using unhead in vue I get a warning in the console but setting the title works like expected:
There is a Q&A ( #210 ) that suggests using
setHeadInjectionHandler(() => head)but the official documentation ( https://unhead.unjs.io/setup/vue/installation#demos ) says I should useapp.use(head). I've tested both versions and both work.This is how I should do it (as far as I understand the documentation) and setting the title works like expected but I get the warning.
This is what the Q&A suggests and I don't get a warning and setting the title works like expected. But since it is very different from what the documentation says I'm unsure if I should use it.
Beta Was this translation helpful? Give feedback.
All reactions