metafizzy / metafizzy/infinite-scroll

Load More button breaking towards end of paginated items

Open
#960 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
7.5k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Getting the following error:

Screenshot 2022-07-26 at 12 07 43

This seems to happen towards the end of the items.

I am loading in 12 items at a time. When I get to 144/180, it fails to load more items and the error is displayed.

The URL with "page 13" in the error, doesn't exist, but a URL with "page 12" does exist.

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure by loading 12 items at a time and reaching 144 of 180 items. Start with the Load More pagination path and inspect how the next-page URL is calculated near the end; done means the remaining items load without requesting the nonexistent page 13 or displaying an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.