Remote mode : Problem with OnFilter change and OnPageChange
See original GitHub issueHello,
I will try to be as clear as possible.
I use your library with the remote mode, I basically do filtering, sortering, and pagination. I recently implemented the filter by column, and implemented the onFilterChange.
It works pretty well if all I do is filtering, but when I try to change the page with this filter, my handler to change page is called, and the data is refreshed, so that’s ok for this, it’s the good data that is displayed, but the problem is that the page highlighted is still the page 1 whereas the value of the currentPage in the state is 2 and this is this value that is passed to the page
parameter of my options
object that I pass to my Table.
Do you have any idea ?
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (8 by maintainers)
Top Results From Across the Web
material-table/Lobby - Gitter
i smooshed the editable and remote data examples. it works for the docs' data ... row selection jumping to a different item after...
Read more >React Bootstrap Table - Documents - GitHub Pages
React-bootstrap-table is a Bootstrap table component rebuilt by React.js. The Documents and API for react-bootstrap-table.
Read more >View Raw
... Bug fixes * Fixed edit cell that has no data IE 11 fails with error code ... Fix default sort does not...
Read more >Unity Client 18
Information in this document is subject to change without notice. ... Clicking and Dragging Pages in Document Display Mode . ... on Page...
Read more >How to fix pagination reset issue in react-table?
I have tried to use the callback onFetchData to change the current page number but it does'nt get triggered when the filter from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This also fixes the filter issue(Maximum call stack size exceeded) we had on remote table. Thanks a lot.
It is related to #1037 because fixing #1037 would also fix this issue (for my case, there can be several variants of this issue).
But fixing this one would not necessarily fix the other, I agree.
EDIT : I read #1037 again and in fact you’re probably right. It’s not really the same thing also both are related to the page change when a filter is set.