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
Use the render function (h) to render a custom Vue component (this is not a problem with native HTML elements).
Pass some props/attrs/slots in the render function.
You'll see that the component is rendered without the passed props/attrs/slots. As if they weren't passed at all (you'll get the typical Vue warning about required props for example).
What is expected?
The component should render with the passed props/attrs and slots.
What is actually happening?
The component is rendered plain... as if no data was passed.
This works in Vue 3.
The text was updated successfully, but these errors were encountered:
Vue 2 render functions work very differently from Vue 3. This was the part that had the biggest changes in Vue 3. Please make sure to read the relevant documentation: https://v2.vuejs.org/v2/guide/render-function.html
Version
2.7.7
Reproduction link
stackblitz.com
Steps to reproduce
h
) to render a custom Vue component (this is not a problem with native HTML elements).What is expected?
The component should render with the passed props/attrs and slots.
What is actually happening?
The component is rendered plain... as if no data was passed.
This works in Vue 3.
The text was updated successfully, but these errors were encountered: