question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remote mode : Problem with OnFilter change and OnPageChange

See original GitHub issue

Hello,

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:closed
  • Created 6 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
rrameshkumar76commented, May 2, 2017

This also fixes the filter issue(Maximum call stack size exceeded) we had on remote table. Thanks a lot.

1reaction
BenoitAvertycommented, Apr 27, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found