Subscribe on changes!

Static slot content vnode's el property remains null after the component is mounted

avatar
Oct 16th 2022

As @zhangzhonghe said, when fixing bug #6591 , @yyx990803 removed the reference to the dom on the hoisted vnodes to avoid memory leaks, you can bind a key to avoid hoisted

<template>
  <Comp><div key='wqewqewq'>
    wqewqewq
    </div></Comp>
</template>
avatar
Oct 17th 2022

This is technically a breaking change, I think the workaround above is not ideal

avatar
Oct 17th 2022

duplicate of #815

This is not a breaking change!

avatar
Oct 17th 2022

OK, strictly speaking, it's an undocumented internal api change since 3.2.40. Let's see how can we proceed with this. One of our internal component library relies on this behavior, currently we have to lock the vue version to 3.2.39 for quick fix.

avatar
Oct 18th 2022

I don't think labeling this as an important bug is warranted. it's essentially an edge case when using an API that's not even public, strictly speaking.