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

Render slot fallback content when there's no content #4529

Closed
tanhauhau opened this issue Mar 9, 2020 · 6 comments
Closed

Render slot fallback content when there's no content #4529

tanhauhau opened this issue Mar 9, 2020 · 6 comments

Comments

@tanhauhau
Copy link
Member

Describe the bug
When using {#if} or {#each} inside Component, it should render fallback content, when the logic block renders nothing

Logs
Please include browser console and server logs around the time this bug occurred.

To Reproduce
https://svelte.dev/repl/7757b496e0f841aab0e7958f4aa77c34?version=3.19.2

Expected behavior
A clear and concise description of what you expected to happen.

Stacktraces
If you have a stack trace to include, we recommend putting inside a <details> block for the sake of the thread's readability:

Stack trace

Stack trace goes here...

Information about your Svelte project:

  • Your browser and the version: (e.x. Chrome 52.1, Firefox 48.0, IE 10)

  • Your operating system: (e.x. OS X 10, Ubuntu Linux 19.10, Windows XP, etc)

  • Svelte version (Please check you can reproduce the issue with the latest release!)

  • Whether your project uses Webpack or Rollup

Severity
How severe an issue is this bug to you? Is this annoying, blocking some users, blocking an upgrade or blocking your usage of Svelte entirely?

Note: the more honest and specific you are here the more we will take you seriously.

Additional context
Add any other context about the problem here.

@christianheine
Copy link
Contributor

Not sure if these two are related, but maybe also have a look at #4703

@wickning1
Copy link

Hopefully a fix for this would also help with wrapped components that have named slots. The wrapping component has to provide the same default content as the component being wrapped or else nothing is rendered.

@stale
Copy link

stale bot commented Dec 24, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@madeleineostoja
Copy link

Not stale

@aderchox
Copy link

+1

@dummdidumm
Copy link
Member

Closing as oudated since snippets superseed slots

@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants