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:
1 parent
4b975869df
commit
79a667fb50
1 file changed
+1
-1
@@ -837,7 +837,7 @@
|
||||
<h2>{$t('home.continueListening')}</h2>
|
||||
</div>
|
||||
<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 isTrackDownloaded = checkTrackDownloaded?.(track.id) || false}
|
||||
<TrackRow
|
||||
|
||||
Reference in new issue
Block a user