fix(runtime-core): initialize renderCache if not present

This commit is contained in:
Evan You 2019-12-12 11:44:18 -05:00
parent 5658f8b678
commit 3116b5d6c3

View File

@ -51,7 +51,7 @@ const publicPropertiesMap: Record<
> = {
$: i => i,
$el: i => i.vnode.el,
$cache: i => i.renderCache,
$cache: i => i.renderCache || (i.renderCache = []),
$data: i => i.data,
$props: i => i.propsProxy,
$attrs: i => i.attrs,