Open bymoe opened 4 years ago
I am handling the current page with backend pagination, but the onPageChange is firing twice; the state is changing two time and it's breaking everything.
onPageChange
onPageChange: (page, sizePerPage) => { console.log(page, sizePerPage); },
Note that onSizePerPageChange is firing once and everything's working just fine.
onSizePerPageChange
react-bootstrap-table2-paginator version: 2.1.0 react-bootstrap-table-next: 3.3.5
2.1.0
3.3.5
@AllenFang I appreciate your time If you can help me with this.
you have to add the options remote onTableChange={() => {}} to the table properties.
I am handling the current page with backend pagination, but the
onPageChange
is firing twice; the state is changing two time and it's breaking everything.Note that
onSizePerPageChange
is firing once and everything's working just fine.react-bootstrap-table2-paginator version:
2.1.0
react-bootstrap-table-next:3.3.5