Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect named slots in server components #25423

Closed
manniL opened this issue Jan 24, 2024 · 1 comment · Fixed by #25479
Closed

Respect named slots in server components #25423

manniL opened this issue Jan 24, 2024 · 1 comment · Fixed by #25479

Comments

@manniL
Copy link
Member

manniL commented Jan 24, 2024

Environment


  • Operating System: Linux
  • Node Version: v18.18.0
  • Nuxt Version: 3.9.3
  • CLI Version: 3.10.0
  • Nitro Version: 2.8.1
  • Package Manager: npm@10.2.3
  • Builder: -
  • User Config: devtools, experimental
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/nuxt-issues-25423

Describe the bug

Using nested slots in a server components + nuxt-client breaks:

Example

<!-- ServerComp.vue -->
<template>
  <div>
    <AppButton nuxt-client>
      <slot />
    </AppButton>
  </div>
</template>
<!-- App.vue -->
<template>
  <div>
    <ServerComp>
       Some slot content here
    </ServerComp>
  </div>
</template>

Additional context

No response

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants