AndersDJohnson / AndersDJohnson/fetch-paginate

paging counter for second page is invalid

Aperta
#74 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug good first issue hacktoberfest help wanted
Lingua principale
TypeScript
Stelle
27
Fork
3
Merge medio
1m
PR unite (30g)
2

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.