You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My understanding of that code is: when a component has dynamic props, Vue removes from the props object any key that doesn't exist anymore in the new props.
The problem here is that rawCurrentProps is normalized (camel-case) but rawProps has the kebab-case key. So they don't match so my prop is erased.
The text was updated successfully, but these errors were encountered:
Version
3.0.0-alpha.12
Steps to reproduce
Sorry I couldn't reproduce the behavior of my app in a repro so I had to debug it myself to figure out what's going on.
What I'm seeing is that sometimes Vue totally removes from
props
a kebab-case prop, although exactly the same template in camelCase works perfectly.I traced it down to this code block:
https://github.com/vuejs/vue-next/blob/cb504c287f9517a055236cadfafcc64895c8825c/packages/runtime-core/src/componentProps.ts#L180-L184
My understanding of that code is: when a component has dynamic props, Vue removes from the
props
object any key that doesn't exist anymore in the new props.The problem here is that
rawCurrentProps
is normalized (camel-case) butrawProps
has the kebab-case key. So they don't match so my prop is erased.The text was updated successfully, but these errors were encountered: