vueuse / head

Document head management for Vue. Powered by Unhead. - πŸŒ‡ Sunset

Home Page:https://unhead.unjs.io/setup/vue/installation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Deleting" a tag

manniL opened this issue Β· comments

Hey πŸ‘‹πŸ»

I was wondering if it is possible to "delete" a tag by setting nothing except the key, e.g.: link: [{ key: 'favicon' }]. This could be useful to override tags in child components but right now just renders an empty <link> tag.

This makes perfect sense, we shouldn't be rendering empty tags.

I'm in the middle of a pretty massive refactor but will make sure this finds itself in there

This is available in the latest v1. You can find documentation here: https://unhead.harlanzw.com/guide/guides/handling-duplicates#removing-a-nested-tag