Repository navigation
fix(spotify-player): limit liked songs library fetch - #30283
Conversation
The liked songs entry only needs the tracks category, but it previously used the default all-library fetch. That could load unrelated collections again while opening Your Library and contribute to the extension memory-limit failures. Changes: - extensions/spotify-player/src/components/PlaylistLikedTracksItem.tsx - Request only the tracks category for the liked songs entry. - extensions/spotify-player/CHANGELOG.md - Document the reduced library loading. Validation: - npm run lint --prefix extensions/spotify-player - npm run build --prefix extensions/spotify-player
888a7af to
52c1a4d
Compare
|
Thank you for your contribution! 🎉 🔔 @mattisssa @peduarte @sxn @dillionverma @andreaselia @stuart @tonka3000 @pernielsentikaer @stevensd2m @erics118 @hjoelh @hobhouse @jatindotdev @the-devbear @rfaccio @badta5te @andyburris @rhesamu @themitpatel @LitoMore @EnneEmme @lineville @tsibog @viethung0823 @eyalevy23 @vmrjnvc @Karthikxp @kartheesan05 @joshkat @Caffeine19 @AdrianKokot @validatedev @xmok @hugodemenez @alexibuild @shivraj-roy @ridemountainpig you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. 📋 Quick checkout commandsWe're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days. |
Greptile SummaryThe PR narrows the liked-songs entry’s library request to the tracks category, avoiding unrelated library fetches while preserving its displayed data.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Reviews (2): Last reviewed commit: "Update CHANGELOG.md" | Re-trigger Greptile |
pernielsentikaer
left a comment
There was a problem hiding this comment.
Looks good. The liked-songs row only needs tracks, so this avoids the full library fetch.
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Summary
I noticed that the liked songs entry calls
useYourLibrary()without selecting a category. Since the hook defaults toall, opening the Your Library command can fetch unrelated library categories again even though this component only needs tracks.I changed the component to request the
trackscategory explicitly. This keeps the visible behavior the same while avoiding unnecessary library data and reducing the chance of contributing to the extension's 100 MB heap failures.Validation
npm run lint --prefix extensions/spotify-playernpm run build --prefix extensions/spotify-playerI have not been able to reproduce the memory-limit crash locally, so I kept this change intentionally small and limited to the redundant library fetch.
Related issue: #30218
Related reports: #27607, #23405