msr-mod/src/utils
Astrian Zheng dcf13b2f07
refactor: move resource URL refresh from favorites loading to playback/preload
Replace passive resource checking on playlist item mount with active checking
during playback and preload operations. This improves performance by reducing
unnecessary network requests and ensures resources are validated only when needed.

Changes:
- Create songResourceChecker utility for centralized resource validation
- Remove resource checking from PlayListItem component
- Add resource validation in Player component before playback
- Add resource validation in usePlayQueueStore before preload
- Maintain data consistency between play queue and favorites

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-04 21:22:39 +10:00
..
artistsOrganize.ts feat: 添加 TrackItem 组件并优化专辑详情页 2025-05-25 08:57:13 +10:00
audioVisualizer.ts style(Playroom): 为歌曲名称和艺术家信息添加截断样式 2025-05-26 08:14:14 +10:00
cicdInfo.ts fix: update VITE_HASH_ID to use full SHA in build jobs and adjust display in cicdInfo 2025-05-29 11:53:29 +10:00
index.ts refactor: move resource URL refresh from favorites loading to playback/preload 2025-06-04 21:22:39 +10:00
songResourceChecker.ts refactor: move resource URL refresh from favorites loading to playback/preload 2025-06-04 21:22:39 +10:00