nuxt / vue-meta

Manage HTML metadata in Vue.js components with SSR support
https://vue-meta.nuxtjs.org
Other
4.08k stars 247 forks source link

refresh doesn't respect child's innerhtml=null #792

Open yakovyarmo opened 1 year ago

yakovyarmo commented 1 year ago

I'm using nuxt 2

I've noticed that when calling the meta refresh on the client side, it doesn't respect innerhtml=null in the child component. After further investigation I found that the problem lays in the following line:

https://github.com/nuxt/vue-meta/blob/5a70744aeabb1c79e16d13206ee6d163edbb4c5e/src/shared/merge.js#L51

It happens since you are removing it from the source and then in the next refresh it doesn't exists anymore. My solution for now was to override the splice method so it won't do anything.