From: Evan You Date: Thu, 12 Dec 2019 16:44:18 +0000 (-0500) Subject: fix(runtime-core): initialize renderCache if not present X-Git-Tag: v3.0.0-alpha.0~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3116b5d6c3628c88a290c487bc0a21c63689c606;p=thirdparty%2Fvuejs%2Fcore.git fix(runtime-core): initialize renderCache if not present --- diff --git a/packages/runtime-core/src/componentProxy.ts b/packages/runtime-core/src/componentProxy.ts index 0638b9bd3c..02629fdddc 100644 --- a/packages/runtime-core/src/componentProxy.ts +++ b/packages/runtime-core/src/componentProxy.ts @@ -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,