Relatively new to Stimulus and Hotwire and wanted to know,
"Is there a way to render two different partials for the same broadcasted object on two different pages?
I’m trying to render and broadcast an object on a page from one controller to another page from different controller with different styling.
Example
If I print <%= render @live_room.room.questions %>
in page live_room.html.erb
and print <%= render @room.questions %>
in show.html.erb
They both render the partial _question.html.erb
I would like render a different design depending on the page.
Has anyone faced this issue before or know how to solve this? I’d love to get some insight!
Cheers!