magico

Joined

1,720 Experience
17 Lessons Completed
0 Questions Solved

Activity

Hi Chris. When styling you probably want a message to appear different to the sender vs the receiver. Normally this would be done by using current_user in the partial, but DHH confirmed that partials used for turbo streaming have to be free of global references. What would be the best way to get round this issue?

+1
This is something I came up following the "Realtime Apps with Hotwire & ActionMailbox" video series