Skip to content

Fix pagination bug in discover tab#8

Open
tpaulshippy wants to merge 1 commit intomainfrom
fix/pagination-bug
Open

Fix pagination bug in discover tab#8
tpaulshippy wants to merge 1 commit intomainfrom
fix/pagination-bug

Conversation

@tpaulshippy
Copy link
Copy Markdown
Owner

Summary

  • Fixes bug where users only saw first 20 careers and got "No careers found" after swiping through them
  • The API returns paginated results (20 per page), but frontend wasn't passing page parameter
  • Now loads more careers automatically when user is within 5 cards of the end

Changes

  • Added page parameter to API call
  • Track current page and total pages from pagy response
  • Append new results to existing careers list
  • Load next page when approaching end of current batch

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