Rendering view components with Turbo Stream broadcasts · Colby.so

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 #turbo https://rubyonrails.ba/single/rendering-view-components-with-turbo-stream-broadcasts-colby-so

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles