fix(home): reactively update offline cache state in Continue Listening

Include downloadStateVersion in the each loop key to force re-render
when offline cache state changes, fixing tracks showing gray icons
even when cached.
This commit is contained in:
vicrodh committed 2026-01-27 19:15:57 -06:00
1 parent 4b975869df
commit 79a667fb50
1 file changed
+1 -1
+1 -1
View File
@@ -837,7 +837,7 @@
<h2>{$t('home.continueListening')}</h2> <h2>{$t('home.continueListening')}</h2>
</div> </div>
<div class="track-list compact"> <div class="track-list compact">
{#each continueTracks as track, index} {#each continueTracks as track, index (`${track.id}-${downloadStateVersion}`)}
{@const isActiveTrack = isPlaybackActive && activeTrackId === track.id} {@const isActiveTrack = isPlaybackActive && activeTrackId === track.id}
{@const isTrackDownloaded = checkTrackDownloaded?.(track.id) || false} {@const isTrackDownloaded = checkTrackDownloaded?.(track.id) || false}
<TrackRow <TrackRow