[data grid] When changing rows
and columns
simultaneously, new column
valueGetter
will be invoked on previous rows.
#12190
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
Steps to reproduce
Link to live example
Steps:
valueGetter
Current behavior
Simultaneous update of
rows
andcolumns
causes somecolumn
svalueGetter
s to operate on the previous set ofrows
, if saidcolumn
s share the samefield
.Expected behavior
I think what it should happen is that no
column
valueGetter
should be called on previous data if it has changed. It looks like both a leak and a source of errors.Context
I am fetching from an endpoint which provides me with the
columns
and therows
, so I set these upon successful fetch on a table that has preloaded data.Your environment
npx @mui/envinfo
Search keywords: data-grid x-data-grid column rows state valueGetter
The text was updated successfully, but these errors were encountered: