Replies: 2 comments
-
This behavior is explicitly documented in the Svelte docs for
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Okay thank you! It seems like this behavior makes slot forwarding incompatible with optional slots. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm racing to meet a deadline and don't have time to create a minimal repro, but when you forward a slot to a child component and the slot happens to be empty, the child component
$$slots
flags it as non-empty.I tried:
and
And the following doesn't work at all:
My svelte is getting pretty messy without this feature.
Beta Was this translation helpful? Give feedback.
All reactions