Skip to content

Trigger last page hit if loaded page appends 0 items #840

@desandro

Description

@desandro

A couple issues like #761 and #839 have popped up where a page loads but returns 0 items. At this point Infinite Scroll will then try to load the next page, which could trigger a loop of endlessly loading pages. One solution is to add a conditional where, if append is enabled, and the loaded page includes 0 items, then that be considered the last page hit.

Add a 👍 reaction to this issue if you would like to see this feature added. Do not add +1 comments — They will be deleted.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions