You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second argument to dom_id is a prefix, dom_id(:edit, @chat) is invalid and will raise an exception.
Turbo targets are rendered using the logic of dom_id so [@chat, :edit] is similar to dom_id(@chat, :edit) which will return "edit_chat_xxxx" where :edit is correctly used as a prefix. If you use dom_id in your view, you can use the same arguments in the same order in your targets.
Hey everyone 👋
This:
Renders this:
The thing that tripped me is that this line
turbo_stream.update_all [@chat, :edit], @chat
renderdom_id(:edit, @chat)
.Which is inverted...
Is that intented?
The text was updated successfully, but these errors were encountered: