通过createVNode创建的vnode,在template中,无法具备响应性
Vue version
3.2.27
Link to minimal reproduction
Steps to reproduce
通过createVNode创建的VNode,添加到template上,传入的响应式变量,在其变动后,组件未刷新; 如果通过component组件挂载该VNode,则不存在该问题。
What is expected?
template中的VNode具备响应性
What is actually happening?
template中的VNode未具备响应性
System Info
No response
Any additional comments?
No response
This is non-documented behavior and is not supported.
Correct usage is using <component :is="">
so that the vnode is created during the render: