AndersDJohnson / AndersDJohnson/fetch-paginate
paging counter for second page is invalid
- 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.