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

Lines changed: 5 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy