Skip to content

Commit fed602b

Browse files
committed
refactor: also clone vnode.asyncFactory
1 parent 4d68079 commit fed602b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/core/vdom/vnode.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ export default class VNode {
1919
isComment: boolean; // empty comment placeholder?
2020
isCloned: boolean; // is a cloned node?
2121
isOnce: boolean; // is a v-once node?
22-
asyncFactory: ?Function; // async component factory function
23-
asyncMeta: ?Object;
22+
asyncFactory: Function | void; // async component factory function
23+
asyncMeta: Object | void;
2424
isAsyncPlaceholder: boolean;
25-
ssrContext: ?Object;
25+
ssrContext: Object | void;
2626

2727
constructor (
2828
tag?: string,
@@ -87,7 +87,8 @@ export function cloneVNode (vnode: VNode): VNode {
8787
vnode.text,
8888
vnode.elm,
8989
vnode.context,
90-
vnode.componentOptions
90+
vnode.componentOptions,
91+
vnode.asyncFactory
9192
)
9293
cloned.ns = vnode.ns
9394
cloned.isStatic = vnode.isStatic

0 commit comments

Comments
 (0)