feat: add Load More pagination to Project Showcase section#663
Merged
Aditya948351 merged 1 commit intoJun 20, 2026
Merged
Conversation
Aditya948351
approved these changes
Jun 20, 2026
Collaborator
There was a problem hiding this comment.
Great job on the Load More pagination! The component state is handled cleanly, and the slice logic is highly performant for this use case. It perfectly resolves the issue requirements!
Look after passing the Linting check on your next PRs @nishupr
b089b8e
into
devpathindcommunity-india:master
3 of 4 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #639 #634
Scope Note
While investigating this issue, I found that the Resources section (
ResourcesTabs.tsx, roadmaps tab) already has a working IntersectionObserver-based infinite scroll implementation (visibleCount,ITEMS_PER_PAGE,observerRef), so no changes were needed there.The Project Showcase section (
ProjectShowcaseSection.tsx), however, was rendering all projects at once with no pagination. This PR addresses that gap.Changes Made
visibleCountstate initialized to6itemsprojects.slice(0, visibleCount)) instead of rendering the full listWhy this approach?
A "Load More" button was chosen over IntersectionObserver here because:
How to test?
/profile/<username>Type of Change