Skip to content
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

Add VNode type as the first argument of h #2834

Open
silentmantra opened this issue Apr 26, 2024 · 1 comment
Open

Add VNode type as the first argument of h #2834

silentmantra opened this issue Apr 26, 2024 · 1 comment
Labels
state: blocked A label for merge requests where work is blocked

Comments

@silentmantra
Copy link

silentmantra commented Apr 26, 2024

https://vuejs.org/api/render-function.html#h

I've tried to pass a vnode as the first argument and additional props, what I expected is that would work and it does. So basically h (when I looked into the code) redirects arguments to cloneVNode. I guess that's a reliable behavior. If so could we include a vnode as a proper type for the first h's argument? The overhead is very small and it sometimes faster just use h if it's already imported.

@brc-dd
Copy link
Member

brc-dd commented Apr 26, 2024

Please create an issue at https://github.com/vuejs/core to add the corresponding types first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: blocked A label for merge requests where work is blocked
Projects
None yet
Development

No branches or pull requests

3 participants