File tree 2 files changed +2
-3
lines changed
packages/runtime-core/src
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ export interface ComponentInternalInstance {
114
114
accessCache : Data | null
115
115
// cache for render function values that rely on _ctx but won't need updates
116
116
// after initialized (e.g. inline handlers)
117
- renderCache : ( Function | VNode ) [ ] | null
117
+ renderCache : ( Function | VNode ) [ ]
118
118
119
119
// assets for fast resolution
120
120
components : Record < string , Component >
@@ -192,7 +192,7 @@ export function createComponentInstance(
192
192
effects : null ,
193
193
provides : parent ? parent . provides : Object . create ( appContext . provides ) ,
194
194
accessCache : null ! ,
195
- renderCache : null ,
195
+ renderCache : [ ] ,
196
196
197
197
// setup context properties
198
198
renderContext : EMPTY_OBJ ,
Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ const publicPropertiesMap: Record<
51
51
> = {
52
52
$ : i => i ,
53
53
$el : i => i . vnode . el ,
54
- $cache : i => i . renderCache || ( i . renderCache = [ ] ) ,
55
54
$data : i => i . data ,
56
55
$props : i => i . propsProxy ,
57
56
$attrs : i => i . attrs ,
You can’t perform that action at this time.
0 commit comments