TIL: Turbo Stream and personalised content — Good Enough
18-Aug-2023 884
Hotwire and Turbo are great for very quickly and easily adding real-time updating of webpages without requiring the browser to reload the whole page.But if the information you want to stream back from your server to the client has anything specific to the current user — like using the name "You" instead of "James" — you might hit an issue. So far I haven't found this written up on the web anywhere, so hopefully this will help someone else with the same problem.Let's take this example straight from the documentation:.
TIL: Turbo Stream and personalised content — Good Enough #ruby #rubydeveloper #rubyonrails #Turbo #Stream #personalised #content #Enough #turbo https://rubyonrails.ba/link/til-turbo-stream-and-personalised-content-good-enough