You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to be able to select a row for two different purposes.
In a nutshell, the row should be selectable for list A OR for list B (but not for both).
React-table allows us to select a row in a performant wat, but it's only "selected/not selected", while we need two different toggles (one for each target list).
We implemented that manually, but each click on one of the checkboxes triggers a costly re-render of all the list, which is painfully slow as soon as the list has more than about 50 items in it, while the native rowSelection is very performant.
Could someone recommend a workaround to this performance issue, or another approach using native options to tackle the use case ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
We need to be able to select a row for two different purposes.
In a nutshell, the row should be selectable for list A OR for list B (but not for both).
React-table allows us to select a row in a performant wat, but it's only "selected/not selected", while we need two different toggles (one for each target list).
We implemented that manually, but each click on one of the checkboxes triggers a costly re-render of all the list, which is painfully slow as soon as the list has more than about 50 items in it, while the native rowSelection is very performant.
Could someone recommend a workaround to this performance issue, or another approach using native options to tackle the use case ?
Beta Was this translation helpful? Give feedback.
All reactions