Warn when vnodes are accidentally reused
Version
3.0.0
Reproduction link
https://codepen.io/bastarder/pen/gOrqNoG
Steps to reproduce
i saw the document say All VNodes in the component tree must be unique. That means the following render function is invalid
see here
<script>
import { h } from 'vue'
export default {
render() {
const myParagraphVNode = h('p', 'hi')
return h('div', [
myParagraphVNode, myParagraphVNode,
])
},
}
</script>
What is expected?
give some warning
What is actually happening?
both of myParagraphVNode rendered successfully