You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we put named slot in {#if} block on parent component, child will not receive the named slot, but only default slot.
Please check NavBar.svelte $$slots
Example:
Thank you for explanation and workaround, but workaround looks complicated, and will be more complicated with more props...
So, may be we can convert it to feature request?
That behavior looks logical and will be really useful for multiple scenarios. Thank you!
Describe the bug
If we put named slot in {#if} block on parent component, child will not receive the named slot, but only default slot.
Please check NavBar.svelte $$slots
Example:
App.svelte
Header.svelte
NavBar.svelte
Btn.svelte
Reproduction
https://svelte.dev/repl/c0de4395f6ad4f7c9093a660225e7110?version=3.48.0
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: