Skip to content

Pagination option changes not updating the table #1287

@gosticks

Description

@gosticks

First of all thank you for the great work on the library!

Question
With a previous version of the lib changes to the pagination options would be reflected by the table by default. I have checked the pagination state-context.js and it seems updates to the pagination options will only be visible when in custom or remote modes. Is there a reason for not updating currSizePerPage and currPage in the other cases as well?
My usecase was to update the table page size based on the viewport by changing the value of sizePerPage.

codesandbox
Here is a sandbox showing this issue:
https://codesandbox.io/s/react-bootstrap-table-2-56lqk

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions