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.

Search and Pagination problem

See original GitHub issue

Hi,

I have an issue related to search and pagination(remote).

If I have more then 10 rows and sizePerPage is 10. When table is already loaded and I click on the next button and then search I expect to back to fist page of pagination, but this is not the current bihavior.

Also in dev tools, I have warning error during searching

Warning: Cannot update during an existing state transition (such as within render or another component’s constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to componentWillMount.

All data came from third part API.

Thanks 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
akash-morecommented, Dec 28, 2018

Hi @AllenFang I am facing the same issue in UI, the data is updated but the page number is not updated to 1 in the UI. Is this issue resolved?

0reactions
sammartfrankcommented, Jan 8, 2021

@AllenFang how are you Allen? I am currently experiencing an issue where every time im in the firstPage the previous button is enabled and if clicked, crashes de the app. I am currently working on a NO remote table. image image image

Hope you are all well and sound, thanks in advance!

Read more comments on GitHub >

github_iconTop Results From Across the Web

4 Common Pagination Pitfalls – How to Get Into & Out of Them
Typically, unbeknownst to the site owner, a big pagination problem is when the implementation is simply broken and there isn't a system in ......
Read more >
There's a bug with Search and Pagination in React
Changes to search do not cause fetchData to re-run. The data depends on the search so search should be a dependency.
Read more >
Pagination is not working as intended, it should display total ...
The issue with pagination of the search results not showing all the search results returned, it shows nothing or only partial search results....
Read more >
Search with pagination not working as expected - OutSystems
When I am searching any of my filter criteria on the first page everything is working fine, but when navigating to another page...
Read more >
Pagination problem in search option in Laravel - Laracasts
I am having a textbox which searches the data and displays in tabular format. The search box works when I type any text...
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