Skip to content

Slots don't get rendered unless any param is passed to them #1080

Answered by boardfish
arg asked this question in Q&A
Discussion options

You must be logged in to vote

This is normal behavior, but I agree with you that it's unintuitive.

In the meantime, you can define a method logo on your component that returns the component you want to render in the slot, and it ought to work in the same way so long as you call it in a <%= %> tag.

I'll verify that this is the case and update this answer soon.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants