File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ declare interface Component {
66
66
_isDestroyed: boolean;
67
67
_isBeingDestroyed: boolean;
68
68
_vnode: ?VNode; // self root node
69
+ _staticTrees: ?Array< VNode > ; // v-once cached trees
69
70
_hasHookEvent: boolean;
70
71
_provided: ?Object;
71
72
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import { isUpdatingChildComponent } from './lifecycle'
17
17
18
18
export function initRender ( vm : Component ) {
19
19
vm . _vnode = null // the root of the child tree
20
+ vm . _staticTrees = null // v-once cached trees
20
21
const options = vm . $options
21
22
const parentVnode = vm . $vnode = options . _parentVnode // the placeholder node in parent tree
22
23
const renderContext = parentVnode && parentVnode . context
You can’t perform that action at this time.
0 commit comments