Skip to content

Add pageNo (page number) param to ListViewWidget's getLoadMoreUrl method. #117

@rubenlop88

Description

@rubenlop88

I need to implement a "load more" functionality in my app. The problem is, I can't use the currentNo param because the pages will be generated dynamically in the server, and I can't be sure of how many elements each page will have. Therefore, I can't rely on the current size of the list to get the next page.

My proposal is to store an additional _pageCount param in ListViewWidget's state, and increment it every time a call to doRequest() is successful, and add it to the getLoadMoreUrl request as a new query param pageNo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions