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.
This commit is contained in:
@@ -15,7 +15,7 @@ defmodule MusicLibraryWeb.ScrobbleComponents do
|
||||
<button
|
||||
type="button"
|
||||
class="text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-zinc-300"
|
||||
phx-click={JS.push("refresh_lastfm_feed")}
|
||||
phx-click="refresh_lastfm_feed"
|
||||
>
|
||||
<span class="sr-only">{gettext("Refresh LastFm Feed")}</span>
|
||||
<.icon
|
||||
|
||||
Reference in New Issue
Block a user