fix(core): propsProxy should not convert non-reactive nested values
This commit is contained in:
@@ -14,7 +14,6 @@ import { ShapeFlags } from './shapeFlags'
|
||||
import { handleError, ErrorCodes } from './errorHandling'
|
||||
import { PatchFlags, EMPTY_OBJ } from '@vue/shared'
|
||||
import { warn } from './warning'
|
||||
import { readonlyProps } from '@vue/reactivity'
|
||||
|
||||
// mark the current rendering instance for asset resolution (e.g.
|
||||
// resolveComponent, resolveDirective) during render
|
||||
@@ -53,15 +52,14 @@ export function renderComponentRoot(
|
||||
} else {
|
||||
// functional
|
||||
const render = Component as FunctionalComponent
|
||||
const propsToPass = __DEV__ ? readonlyProps(props) : props
|
||||
result = normalizeVNode(
|
||||
render.length > 1
|
||||
? render(propsToPass, {
|
||||
? render(props, {
|
||||
attrs,
|
||||
slots,
|
||||
emit
|
||||
})
|
||||
: render(propsToPass, null as any /* we know it doesn't need it */)
|
||||
: render(props, null as any /* we know it doesn't need it */)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user