AndersDJohnson / AndersDJohnson/fetch-paginate

paging counter for second page is invalid

Ouverte
#74 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug good first issue hacktoberfest help wanted
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.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.