refactor(runtime-core): refactor props resolution
Improve performance in optimized mode + tests
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
||||
isVNode
|
||||
} from './vnode'
|
||||
import { handleError, ErrorCodes } from './errorHandling'
|
||||
import { PatchFlags, ShapeFlags, EMPTY_OBJ, isOn } from '@vue/shared'
|
||||
import { PatchFlags, ShapeFlags, isOn } from '@vue/shared'
|
||||
import { warn } from './warning'
|
||||
|
||||
// mark the current rendering instance for asset resolution (e.g.
|
||||
@@ -94,7 +94,7 @@ export function renderComponentRoot(
|
||||
if (
|
||||
Component.inheritAttrs !== false &&
|
||||
fallthroughAttrs &&
|
||||
fallthroughAttrs !== EMPTY_OBJ
|
||||
Object.keys(fallthroughAttrs).length
|
||||
) {
|
||||
if (
|
||||
root.shapeFlag & ShapeFlags.ELEMENT ||
|
||||
|
||||
Reference in New Issue
Block a user