We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2074d66 commit 280829bCopy full SHA for 280829b
packages/runtime-vapor/src/vdomInterop.ts
@@ -16,6 +16,7 @@ import {
16
isEmitListener,
17
onScopeDispose,
18
renderSlot,
19
+ shallowReactive,
20
shallowRef,
21
simpleSetCurrentInstance,
22
} from '@vue/runtime-dom'
@@ -163,7 +164,8 @@ function createVDOMComponent(
163
164
165
// overwrite how the vdom instance handles props
166
vnode.vi = (instance: ComponentInternalInstance) => {
- instance.props = wrapper.props
167
+ // ensure props are shallow reactive to align with VDOM behavior.
168
+ instance.props = shallowReactive(wrapper.props)
169
170
const attrs = (instance.attrs = createInternalObject())
171
for (const key in wrapper.attrs) {
0 commit comments