From 1dd7974cc73929ee41e66c41f39c0d08315e19b7 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Fri, 13 Mar 2026 16:48:12 +0000 Subject: [PATCH] Use socket assigns instead of threading IDs via JS.push Extends the same optimization from the previous commit to all remaining show page handlers across collection, wishlist, and artist LiveViews. Also simplifies bare JS.push() calls to plain phx-click strings. --- .../components/scrobble_components.ex | 2 +- .../live/artist_live/show.ex | 32 +++++++++--------- .../live/collection_live/show.ex | 29 ++++++++-------- .../live/wishlist_live/show.ex | 33 +++++++++---------- 4 files changed, 46 insertions(+), 50 deletions(-) diff --git a/lib/music_library_web/components/scrobble_components.ex b/lib/music_library_web/components/scrobble_components.ex index d11c2f3f..366834b0 100644 --- a/lib/music_library_web/components/scrobble_components.ex +++ b/lib/music_library_web/components/scrobble_components.ex @@ -15,7 +15,7 @@ defmodule MusicLibraryWeb.ScrobbleComponents do