Relative Content

Tag Archive for react-reduxag-gridag-grid-react

How do you process all pasted changes in React Ag-Grid at once?

In React Ag-Grid, if a user pastes data into multiple cells at once, the valueSetter gets called for each cell that was pasted. This significantly slows down rendering, because if a user wants to paste into 10 cells, then valueSetter gets called 10 times (the data in my Ag-Grid is managed using redux, so I must dispatch an update when changes occur in Ag-Grid). Ideally, the valueSetter could group all of the changes and then only get called once.