Rendering view components with Turbo Stream broadcasts · Colby.so
04-Nov-2021 1180
View components, via Github’s view_component gem, are growing in popularity in the Rails community but until recently, view components and Turbo Stream broadcasts didn’t play well together. This made using both view components and Turbo Streams in the same application clunky and a little frustrating.While there were ways to get components working with streams, thanks to a recent addition to turbo-rails, rendering view components from Turbo Streams now works seamlessly out of the box.
Rendering view components with Turbo Stream broadcasts · Colby.so #ruby #rubydeveloper #rubyonrails #Rendering #components #Turbo #Stream #broadcasts #Colby.so #turbo https://rubyonrails.ba/link/rendering-view-components-with-turbo-stream-broadcasts-colby-so