Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(nuxt3): return render function for <Head> (#3213)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 14, 2022
1 parent 0ca3d5c commit 9734856
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt3/src/meta/runtime/components.ts
Expand Up @@ -194,7 +194,7 @@ export const Style = defineComponent({
// <head>
export const Head = defineComponent({
name: 'Head',
setup: (_props, ctx) => ctx.slots.default
setup: (_props, ctx) => () => ctx.slots.default?.()
})

// <html>
Expand Down
3 changes: 3 additions & 0 deletions test/fixtures/basic/pages/index.vue
@@ -1,5 +1,8 @@
<template>
<div>
<Head>
<Title>Basic fixture</Title>
</Head>
<h1>Hello Vue 3</h1>
<div>Config: {{ $config.testConfig }}</div>
</div>
Expand Down

0 comments on commit 9734856

Please sign in to comment.