Skip to content

Commit

Permalink
feat(server-component): pass slot to NuxtIsland
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-julien committed Mar 30, 2023
1 parent 9fb431b commit f99cdf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nuxt/src/components/runtime/server-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ export const createServerComponent = (name: string) => {
return defineComponent({
name,
inheritAttrs: false,
setup (_props, { attrs }) {
setup (_props, { attrs, slots }) {
return () => h(NuxtIsland, {
name,
props: attrs
})
}, slots)
}
})
}

0 comments on commit f99cdf7

Please sign in to comment.