gregnb / gregnb/mui-datatables

setSelectedRows on customToolbarSelect

Open
#1,725 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

## Issue: Apparently using the setSelectedRows on customToolbarSelect causes an infinite rerender loop

I created a table component to avoid redundant code.

![image](https://user-images.githubusercontent.com/55270924/118862377-dd154380-b907-11eb-99ee-ba49034d2b42.png)
The photo above is what I have done. I need the id of the row that is selected through the checkbox.

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Start by reproducing the issue around customToolbarSelect and setSelectedRows, then trace the selection state updates in the table implementation. Done means selecting a checkbox no longer causes an infinite rerender loop and the selected row id remains available.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.