fix: fix not saving cached computed options
This commit is contained in:
parent
1106e2208d
commit
871947c25f
@ -25,6 +25,7 @@ export function getComputedOptions(
|
|||||||
// as it's already defined on the prototype
|
// as it's already defined on the prototype
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
extractionCache.set(comp, computedOptions)
|
||||||
return computedOptions
|
return computedOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,7 +110,11 @@ export function normalizeComponentRoot(
|
|||||||
componentVNode &&
|
componentVNode &&
|
||||||
(flags & VNodeFlags.COMPONENT || flags & VNodeFlags.ELEMENT)
|
(flags & VNodeFlags.COMPONENT || flags & VNodeFlags.ELEMENT)
|
||||||
) {
|
) {
|
||||||
if (inheritAttrs !== false && attrs !== void 0) {
|
if (
|
||||||
|
inheritAttrs !== false &&
|
||||||
|
attrs !== void 0 &&
|
||||||
|
Object.keys(attrs).length > 0
|
||||||
|
) {
|
||||||
vnode = cloneVNode(vnode, attrs)
|
vnode = cloneVNode(vnode, attrs)
|
||||||
} else if (vnode.el) {
|
} else if (vnode.el) {
|
||||||
vnode = cloneVNode(vnode)
|
vnode = cloneVNode(vnode)
|
||||||
|
Loading…
Reference in New Issue
Block a user