|
|
@@ -212,7 +212,7 @@ export function createPatchFunction (backend) {
|
|
|
if (isDef(i)) {
|
|
|
const isReactivated = isDef(vnode.componentInstance) && i.keepAlive
|
|
|
if (isDef(i = i.hook) && isDef(i = i.init)) {
|
|
|
- i(vnode, false /* hydrating */, parentElm, refElm)
|
|
|
+ i(vnode, false /* hydrating */)
|
|
|
}
|
|
|
// after calling the init hook, if the vnode is a child component
|
|
|
// it should've created a child instance and mounted it. the child
|
|
|
@@ -220,6 +220,7 @@ export function createPatchFunction (backend) {
|
|
|
// in that case we can just return the element and be done.
|
|
|
if (isDef(vnode.componentInstance)) {
|
|
|
initComponent(vnode, insertedVnodeQueue)
|
|
|
+ insert(parentElm, vnode.elm, refElm)
|
|
|
if (isTrue(isReactivated)) {
|
|
|
reactivateComponent(vnode, insertedVnodeQueue, parentElm, refElm)
|
|
|
}
|
|
|
@@ -681,7 +682,7 @@ export function createPatchFunction (backend) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return function patch (oldVnode, vnode, hydrating, removeOnly, parentElm, refElm) {
|
|
|
+ return function patch (oldVnode, vnode, hydrating, removeOnly) {
|
|
|
if (isUndef(vnode)) {
|
|
|
if (isDef(oldVnode)) invokeDestroyHook(oldVnode)
|
|
|
return
|
|
|
@@ -693,7 +694,7 @@ export function createPatchFunction (backend) {
|
|
|
if (isUndef(oldVnode)) {
|
|
|
// empty mount (likely as component), create new root element
|
|
|
isInitialPatch = true
|
|
|
- createElm(vnode, insertedVnodeQueue, parentElm, refElm)
|
|
|
+ createElm(vnode, insertedVnodeQueue)
|
|
|
} else {
|
|
|
const isRealElement = isDef(oldVnode.nodeType)
|
|
|
if (!isRealElement && sameVnode(oldVnode, vnode)) {
|