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.

Pagination not playing nicely with Toolkit table search bar.

See original GitHub issue

Looks like there’s a bug when using both pagination and the search bar from the toolkit.

To reproduce:

  1. Search for something that returns 0 results using a full table search bar.
  2. Change the rows per page to something other than the current selection. e.g. from 10 to 20.
  3. Clear the search term from the search bar.

It throws the following error and crashes the app:

TypeError: Cannot read property 'name' of undefined

… where ‘name’ is the keyField passed to the ToolkitProvider.

Any ideas what this might be?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
AllenFangcommented, Aug 20, 2018

@dillobird I think about 8/21 or 22.

1reaction
AllenFangcommented, Aug 21, 2018

Please reopen this issue if the problem still remain, thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Search and Pagination problem · Issue #568 · react-bootstrap ...
Hi,. I have an issue related to search and pagination(remote). If I have more then 10 rows and sizePerPage is 10. When table...
Read more >
Why table pagination is not working with page search in ...
it does work, I have tried several possibilities, but all failed, I know the event is being received, I have tested, I know...
Read more >
Implement Search, Sort, Filter and Pagination in React Redux
In this video, we are going to implement Search, Sort, Filter and Pagination functionality with Redux Saga in React using JSON fake server....
Read more >
The best database pagination technique is
Another downside of offset pagination is that it doesn't play well with real-time data or data that changes often. Offset says how many...
Read more >
How to Build a Table With Filter/Pagination Without 3rd Party ...
Over here, I have a few parts to this table component: search/filter bar; table header; table rows/entries; table pagination. With searchbar ...
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