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
|
||||
}
|
||||
}
|
||||
extractionCache.set(comp, computedOptions)
|
||||
return computedOptions
|
||||
}
|
||||
|
||||
|
@ -110,7 +110,11 @@ export function normalizeComponentRoot(
|
||||
componentVNode &&
|
||||
(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)
|
||||
} else if (vnode.el) {
|
||||
vnode = cloneVNode(vnode)
|
||||
|
Loading…
Reference in New Issue
Block a user