Skip to content

Search results return next parameter even when there are no more results #372

@allanlasser

Description

@allanlasser

As observed in documentcloud-frontend#1288, a list of search results will include a valid next parameter that points to an empty page of results. That leads to an unnecessary additional network request and a flash of loading state that resolves to an empty list. If we're on the last page of results, next should return null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions