-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
props of vnode didn't initialize #4008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
duplicate of #3953 |
@edison1105 Sorry, I didn't want to mention |
is this what you want: https://codesandbox.io/s/frosty-flower-21wge?file=/src/components/HelloWorld.vue |
Yes, I mean this. It's the same value of props in setup. But I wonder why they are different. This is the link that I got props in setup. |
vnode.props only contains the props actually passed to the vnode during render of the parent. default values and camelCase conversion are handled in the component instance and are not reflected on the vnode. This is not a bug. Think of |
Version
3.1.2
Reproduction link
https://codesandbox.io/s/boring-hofstadter-h2jee
Steps to reproduce
Hi, please look at the console.

What is expected?
It's expected to get merged props, like
What is actually happening?
The props of vnode didn't convert to camel case, and there's no default props, such as
a1
b2
c3
.The text was updated successfully, but these errors were encountered: