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?
Posted in Could we get a video on passing Devise current_user (or general user roles) into a Turbo partial?
+1
This is something I came up following the "Realtime Apps with Hotwire & ActionMailbox" video series