You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In stream.once('data', ...), if the first chunk is too big, the following child components haven't been created at the moment, so their metaInfo won't have effects.
constVue=require('vue')constrenderer=require('vue-server-renderer').createRenderer()constVueMeta=require('vue-meta')Vue.use(VueMeta)constvm=newVue({metaInfo: {title: 'root'},template: ` <div>${'a'.repeat(100000)} <foo/> </div> `,components: {foo: {metaInfo: {title: 'foo'},template: '<div>foo</div>'}}})conststream=renderer.renderToStream(vm)stream.once('data',()=>{// BUG: title is 'root'. SHOULD be 'foo'console.log(vm.$meta().inject().title.text())})
The text was updated successfully, but these errors were encountered:
In
stream.once('data', ...)
, if the first chunk is too big, the following child components haven't been created at the moment, so theirmetaInfo
won't have effects.Github: https://github.com/fenivana/vue-meta-streaming-issue
Run in node.js:
The text was updated successfully, but these errors were encountered: