react-bootstrap-table / react-bootstrap-table2

Next Generation of react-bootstrap-table
https://react-bootstrap-table.github.io/react-bootstrap-table2/
MIT License
1.27k stars 433 forks source link

"PaginationProvider will care the data size change." - PaginationProvider re-renders paginationstandalone on every state change while searching table #1317

Open madhanapk opened 4 years ago

madhanapk commented 4 years ago

Describe the bug PaginationListStandalone re-renders on every state change. https://react-bootstrap-table.github.io/react-bootstrap-table2/storybook/index.html?selectedKind=Pagination&selectedStory=Custom%20Pagination%20with%20Search&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Factions%2Factions-panel

To Reproduce Steps to reproduce the behavior:

  1. Go to above link
  2. Search any
  3. Click on button "Load Another Data"
  4. See pagination list size.

Screenshots image image image

vHades0199 commented 4 years ago

same issue cause error with formatter column, see console log

https://codesandbox.io/s/great-edison-if9l6

AllenFang commented 4 years ago

this issue seems only happen when you load the same data size. I will figure out it. thanks