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
Im curious if theres a way to render multiple components in a single story.
Component.with_collection(posts)
is what im using in my app, but I cant find any prior art on how to render multiple components like with a collection. I tried calling constructor twice, but it only takes the last instance.
I know i could swap to just passing in a collection, but I was curious if there was a nicer way to do this.
The text was updated successfully, but these errors were encountered:
We don't have support for that at the moment. We are mirroring the Preview feature in ViewComponent (and in turn Rails Mailer previews) with is very much single component focused.
If we did add it its not clear how we'd format the list in HTML etc and it would also be harder to figure out how to pass control values to them. Of course if you have a higher level component that renders a list of components (perhaps as a render_many slot) then we'd support that well.
Im curious if theres a way to render multiple components in a single story.
Component.with_collection(posts)
is what im using in my app, but I cant find any prior art on how to render multiple components like with a collection. I tried calling
constructor
twice, but it only takes the last instance.I know i could swap to just passing in a collection, but I was curious if there was a nicer way to do this.
The text was updated successfully, but these errors were encountered: