Symfony UX: Turbo
Multiple Updates in one Stream
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 1 / 1

My awesome chat application has 2 template fragments that I need to update via Turbo Streams. One, the chat messages, lives under chat/_messages.html.twig. A second one, a list of users, is on chat/_user-list.html.twig.

When a user enters a message on the chat, we need to update both! (We'll see how to receive server notifications soon!).

How can I accomplish this by rendering only one Turbo Stream request?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.