Keep default slot content for named slots?
For a component
foo using named slots,
<slot name="a"> Some Useful Default Content </slot> <slot name="b"></slot>
And in another components' template:
<foo> <div slot="b"> asdfasdf</div> </foo>
It gets rendered as:
<div slot="b"> asdfasdf</div>
<slot name="a"> is discarded!
Wouldn't it be better to let
<slot name="a"> Some Useful Default Content </slot>
get rendered even if it's not used in another component's template?
If I intentionally want to suppress
slot a, I could just write
<div slot="a"></div> or something like that so that there would be nothing at slot a.
On the other hand, I could really use some default content because I don't want to write them multiple times in different components.
The reason I'm not using unnamed default is that the default slot is rendered anyway,
what I really want is:
If content for
slot a is provided, use it, and no default content is shown.
If not, use default.