-
Hi all, The components do not show when inside slots in a preview. Example: outer_component.rb
outer_component preview
This works as expected and documented in https://viewcomponent.org/guide/slots.html. However, when using a component:
does not work ( inner component does not render. I tried both with and without the inner many thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @muriloime, thanks for opening this discussion. I'm going to work to replicate the issue - if it does turn out there's a replicable problem here, I'll convert this discussion to an issue. In the meantime, you ought to have better luck with preview templates. Personally I tend to prefer those for previews, but I can understand that for the sake of understanding what each example does, inline declaration's preferable. |
Beta Was this translation helpful? Give feedback.
Hey @muriloime, thanks for opening this discussion. I'm going to work to replicate the issue - if it does turn out there's a replicable problem here, I'll convert this discussion to an issue. In the meantime, you ought to have better luck with preview templates. Personally I tend to prefer those for previews, but I can understand that for the sake of understanding what each example does, inline declaration's preferable.