AndersDJohnson / AndersDJohnson/fetch-paginate
paging counter for second page is invalid
- Langage dominant
- TypeScript
- Étoiles
- 27
- Forks
- 3
- Merge moyen
- 1 min
- PR mergées (30 j)
- 2
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.