feat: enhance SearchPage with improved no results message and replace img with Image component for better performance

This commit is contained in:
2025-06-20 01:18:04 +00:00
committed by GitHub
parent b70d232564
commit 0d69b10be0
4 changed files with 11 additions and 5 deletions

View File

@@ -50,6 +50,7 @@ export default function BrowsePage() {
useEffect(() => {
loadAlbums(0);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
// Infinite scroll handler
@@ -71,6 +72,7 @@ export default function BrowsePage() {
scrollArea.addEventListener('scroll', handleScroll);
return () => scrollArea.removeEventListener('scroll', handleScroll);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isLoadingAlbums, hasMoreAlbums, currentPage]);
const loadMore = () => {