AllenFang / AllenFang/react-bootstrap-table

Dual callbacks on pagePerSize dropdown change

Aperta
#1,587 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement in progress
Lingua principale
JavaScript
Stelle
2.2k
Fork
761
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello @AllenFang

For some weird reason I'm doing a fetch request on `onPageChange` and `sizePerPageListChange` both.

I've encountered a scenario where `sizePerPageListChange` event also triggers `onPageChange` event. This is very similar to the example [here](https://allenfang.github.io/react-bootstrap-table/example.html#pagination)(section: Pagination Hook)

Can we avoid the table doing multiple events like these?

Thanks.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.