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.

[useRowSelect] `Select All` operation can be optimized

See original GitHub issue

Using useRowSelect, Select All feature, when used with good amount of rows(mine case is with ~119K rows), then takes a long time to apply action. Following are the major places which are time consuming :-

  1. image It is possible to optimize here by checking flatRowPaths.length === selectedRowPaths.length or in any other way ?

2 image

@tannerlinsley , let me know your thoughts on it, will open PR accordingly…

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
tannerlinsleycommented, Dec 3, 2019

Just pushed a new beta version that uses Set(). It should be a lot faster.

0reactions
gargrohcommented, Dec 4, 2019

Thank you @tannerlinsley

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Table - useRowSelect change select all default behavior
I am using the selection hook in my react table and I can't find a way to override the select all checkbox behavior....
Read more >
API Reference: useRowSelect - React Table - TanStack
useRowSelect. Plugin Hook; Optional. useRowSelect is the hook that implements basic row selection. ... Will be true if all rows are selected.
Read more >
[Performance] All rows are re-rendered on selecting row #1496
I am worried about performance, so that the combination of all hooks + good amount of data + custom code(provided by lib's user)...
Read more >
Table | Selection | JET Developer Cookbook - Oracle
A table displays data items in a tabular format with highly interactive features. This demo shows following table features: Single Row/Column selection ......
Read more >
How to: React Table with Select - Robin Wieruch
Now, we will enable users to select a row in the table by either clicking the row or clicking a checkbox. First, import...
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