-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Comments
Not sure if these two are related, but maybe also have a look at #4703 |
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. |
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. |
Not stale |
+1 |
Closing as oudated since snippets superseed slots |
Describe the bug
When using
{#if}
or{#each}
inside Component, it should render fallback content, when the logic block renders nothingLogs
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.
The text was updated successfully, but these errors were encountered: