fix(runtime-core): should not cast prop value if prop did not change
fix #999
This commit is contained in:
@@ -1246,9 +1246,10 @@ function baseCreateRenderer(
|
||||
optimized: boolean
|
||||
) => {
|
||||
nextVNode.component = instance
|
||||
const prevProps = instance.vnode.props
|
||||
instance.vnode = nextVNode
|
||||
instance.next = null
|
||||
updateProps(instance, nextVNode.props, optimized)
|
||||
updateProps(instance, nextVNode.props, prevProps, optimized)
|
||||
updateSlots(instance, nextVNode.children)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user