Skip to content

paging counter for second page is invalid #74

@skydiablo

Description

@skydiablo

hi,
based on this bundle https://unpkg.com/fetch-paginate@6.1.0/bundle.js the page query parameter isnt incrementing right. this is my code:

fetchOptions = {
//  ...
}

fetchPaginate.default('---URL---', {
                            fetchOptions: fetchOptions,
                            getItems: function (body) {
                                return body.rows
                            },
                            params: true,
                            page: 0,
                        })

the first request got the query param page=0, the second also and the third one got page=2. so the second page with page=1 is never called. bug?

regards,
volker.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions