Skip to content

This PR resolves issue #23 [Bug: "Next" Button Enabled Even When No More Data is Available (Pagination)]#49

Merged
Jatin917 merged 2 commits intoAnujcodecraft:mainfrom
devi5040:next-button
Aug 26, 2025
Merged

This PR resolves issue #23 [Bug: "Next" Button Enabled Even When No More Data is Available (Pagination)]#49
Jatin917 merged 2 commits intoAnujcodecraft:mainfrom
devi5040:next-button

Conversation

@devi5040
Copy link
Contributor

Next button is disabled when no more data available in db.

Fixes issue #23


Changes made:
[ ] - Backend: isLastPage flag is sent along with the response to the frontend.
[ ] - Frontend: isLastPage flag is extracted and button disability handles through existing hasMore useState variable.


Tested Manually in localhost

Notes Page
notes
PYQS Page
pyqs

Tested for the behaviour when db has more documents and next button is enabled in that case.
Screenshot 2025-08-26 141119

… button disability using the existing use State constant hasMore. Also assign the notes data to data variable for smooth working of the web app
@netlify
Copy link

netlify bot commented Aug 26, 2025

👷 Deploy request for manitstudyportal pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit e30e430

@devi5040
Copy link
Contributor Author

@Jatin917 Please review and move forward!

@Jatin917 Jatin917 merged commit 802512e into Anujcodecraft:main Aug 26, 2025
1 check failed
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.

2 participants