[useRowSelect] `Select All` operation can be optimized
See original GitHub issueUsing 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 :-
It is possible to optimize here by checking
flatRowPaths.length === selectedRowPaths.length
or in any other way ?
2
@tannerlinsley , let me know your thoughts on it, will open PR accordingly…
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top 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 >
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 Free
Top 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
Just pushed a new beta version that uses
Set()
. It should be a lot faster.Thank you @tannerlinsley