-
Hello everyone, I'm trying out the view_component with the newly released hotwire, I'm really loving the component way of building the app and while doing some tests with turbo I cannot figure out if is it possible to render a component in a broadcast instead of a partial. I found out in controller you can reapond with a component rendered to string but I'm struggling to understand if can be broadcasted. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
You can either put the component render in a partial or call the component's |
Beta Was this translation helpful? Give feedback.
You can either put the component render in a partial or call the component's
.call
method to generate its payload. It's not clear where you would want to broadcast from: the model or the controller.