Skip to content

Commit 4995ce5

Browse files
committed
make flow pass
1 parent ab428b5 commit 4995ce5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/vdom/create-component.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ function init (vnode: VNodeWithData, hydrating: boolean) {
156156
child.$mount(hydrating ? vnode.elm : undefined, hydrating)
157157
} else if (vnode.data.keepAlive) {
158158
// kept-alive components, treat as a patch
159-
prepatch(vnode, vnode)
159+
const mountedNode: any = vnode // work around flow
160+
prepatch(mountedNode, mountedNode)
160161
}
161162
}
162163

0 commit comments

Comments
 (0)