diff --git a/packages/runtime-core/src/componentRenderUtils.ts b/packages/runtime-core/src/componentRenderUtils.ts index a1afae6201a..ebc381e768e 100644 --- a/packages/runtime-core/src/componentRenderUtils.ts +++ b/packages/runtime-core/src/componentRenderUtils.ts @@ -110,24 +110,19 @@ export function renderComponentRoot( markAttrsAccessed() } result = normalizeVNode( - render.length > 1 - ? render( - __DEV__ ? shallowReadonly(props) : props, - __DEV__ - ? { - get attrs() { - markAttrsAccessed() - return shallowReadonly(attrs) - }, - slots, - emit, - } - : { attrs, slots, emit }, - ) - : render( - __DEV__ ? shallowReadonly(props) : props, - null as any /* we know it doesn't need it */, - ), + render( + __DEV__ ? shallowReadonly(props) : props, + __DEV__ + ? { + get attrs() { + markAttrsAccessed() + return shallowReadonly(attrs) + }, + slots, + emit, + } + : { attrs, slots, emit }, + ), ) fallthroughAttrs = Component.props ? attrs