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

Head component does not work in vue 2.7

vetruvet opened this issue · comments

<Head>...</Head> does not do anything in vue 2.7.

Reproduction link

Expected Results: 2 <meta> tags (use-foo and component-foo)
Actual Results: 1 <meta> tag (use-foo)

At first glance, it seems that <Head> is targeting the vue 3 VNode API and is not compatible with the vue 2 VNode API.

Hey @vetruvet

Thanks for the reproduction :)

I'll need to dig into the differences in how the node VNode API's work between v2 and v3. This issue will be low priority though given this package is mainly targeted at v3.

If you really need it over useHead, a PR would be appreciated :)