refactor(runtime-core): tweak component proxy implementation
This commit is contained in:
@@ -34,7 +34,8 @@ export function renderComponentRoot(
|
||||
const {
|
||||
type: Component,
|
||||
vnode,
|
||||
renderProxy,
|
||||
proxy,
|
||||
withProxy,
|
||||
props,
|
||||
slots,
|
||||
attrs,
|
||||
@@ -48,7 +49,7 @@ export function renderComponentRoot(
|
||||
}
|
||||
try {
|
||||
if (vnode.shapeFlag & ShapeFlags.STATEFUL_COMPONENT) {
|
||||
result = normalizeVNode(instance.render!.call(renderProxy))
|
||||
result = normalizeVNode(instance.render!.call(withProxy || proxy))
|
||||
} else {
|
||||
// functional
|
||||
const render = Component as FunctionalComponent
|
||||
|
||||
Reference in New Issue
Block a user