AndersDJohnson / AndersDJohnson/fetch-paginate

paging counter for second page is invalid

未关闭
#74 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug good first issue hacktoberfest help wanted
主要语言
TypeScript
星标
27
派生
3
平均合并
1 分钟
30 天内合并 PR
2

描述

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:

```JS
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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。