Skip to content

Commit

Permalink
fix: Pass props to functional component
Browse files Browse the repository at this point in the history
  • Loading branch information
freakzlike committed May 19, 2022
1 parent 92d8eb8 commit f3cbd2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ export function mount(
},
props: originalComponent.props || {},
setup:
(_, { attrs, slots }) =>
(props, { attrs, slots }) =>
() =>
h(originalComponent, attrs, slots),
h(originalComponent, { ...props, ...attrs }, slots),
...instanceOptions
})
addToDoNotStubComponents(originalComponent)
Expand Down

0 comments on commit f3cbd2a

Please sign in to comment.