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
In guide/migration/slots-unification, the syntax for passing slots to a component is incorrect.
RawSlots is not part of props, the second parameter in the used h overload, but part of third parameter children.
The syntax is correctly documented elsewhere: guide/render-function.
Suggested edit:
## 3.x Syntax- In 3.x, render functions will have a `slots` option where they can be defined instead.+ In 3.x, render functions can take an object of `slots` as the `children` parameter instead.
```js
// 3.x Syntax
- h(LayoutComponent, {- slots: {- header: () => h('div', this.header),- content: () => h('div', this.content)- }+ h(LayoutComponent, {}, {+ header: () => h('div', this.header),+ content: () => h('div', this.content)+ })
```
The text was updated successfully, but these errors were encountered:
In guide/migration/slots-unification, the syntax for passing slots to a component is incorrect.
RawSlots is not part of props, the second parameter in the used h overload, but part of third parameter children.
The syntax is correctly documented elsewhere: guide/render-function.
Suggested edit:
The text was updated successfully, but these errors were encountered: