Skip to content

Enhance CatalogGalleryPage with infinite scroll and deduplication logic#12

Merged
pedrokarim merged 1 commit intomainfrom
dev
Jan 20, 2026
Merged

Enhance CatalogGalleryPage with infinite scroll and deduplication logic#12
pedrokarim merged 1 commit intomainfrom
dev

Conversation

@pedrokarim
Copy link
Owner

This commit updates the CatalogGalleryPage component to implement infinite scroll functionality, allowing for a smoother user experience when loading images. It introduces a new sentinelRef for observing when to load more images and manages loading states effectively. Additionally, the image fetching logic is refactored to include deduplication of images by name, ensuring that only unique images are displayed. The API route is also updated to support pagination for image retrieval, enhancing the overall performance and usability of the gallery.

This commit updates the `CatalogGalleryPage` component to implement infinite scroll functionality, allowing for a smoother user experience when loading images. It introduces a new `sentinelRef` for observing when to load more images and manages loading states effectively. Additionally, the image fetching logic is refactored to include deduplication of images by name, ensuring that only unique images are displayed. The API route is also updated to support pagination for image retrieval, enhancing the overall performance and usability of the gallery.
@pedrokarim pedrokarim merged commit 90dcf85 into main Jan 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant