Working with Turbo Stream helper? #303
-
Hi, I'm wondering what you might recommend for working with the turbo-stream helper in rails. It's more complicated than turbo-frames because the helper is doing a bunch of additional work, not just wrapping the content in a simple tag. I appreciate any insights! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
I'mma just pop in a lil simplified snippet of what I'm doing to use a turbo stream helper. Happy to discuss if you got Qs. Here's a related issue that talks a bit bout the need for the
|
Beta Was this translation helpful? Give feedback.
-
Hey @Bumppoman. I haven't spent much time on this problem yet, but it's definitely a priority for the library. Have you any thoughts on how it might look? |
Beta Was this translation helpful? Give feedback.
-
Hey @Bumppoman I added support for rendering Phlex components as turbo stream content in turbo-rails 1.4. hotwired/turbo-rails#433 You can use it like this turbo_stream.append "notifications", NotificationComponent.new(@notification) |
Beta Was this translation helpful? Give feedback.
Hey @Bumppoman I added support for rendering Phlex components as turbo stream content in turbo-rails 1.4. hotwired/turbo-rails#433
You can use it like this