Invalidate cached images when album changes

This commit is contained in:
Deluan
2021-03-12 15:39:31 -05:00
parent 0049d8d311
commit 1ec105a245
4 changed files with 25 additions and 18 deletions
+2 -10
View File
@@ -133,16 +133,8 @@ const AlbumDetails = ({ record }) => {
return genreDateLine.join(' · ')
}
const imageUrl = subsonic.url(
'getCoverArt',
record.coverArtId || 'not_found',
{ size: 300 }
)
const fullImageUrl = subsonic.url(
'getCoverArt',
record.coverArtId || 'not_found'
)
const imageUrl = subsonic.getCoverArtUrl(record, 300)
const fullImageUrl = subsonic.getCoverArtUrl(record)
const handleOpenLightbox = React.useCallback(() => setLightboxOpen(true), [])
const handleCloseLightbox = React.useCallback(