I am trying to use an editing API from "@mui/x-data-grid" and simply have editing on the cell and retrieve the new value.
When I use
onCellEditStop={(params: GridCellEditStopParams, event: MuiEvent) => {
console.log(params);
if (params.reason === GridCellEditStopReasons.cellFocusOut) {
event.defaultMuiPrevented = true;
}
}}
Console log prints out the old parameters which include the old value of the cell instead of the new one to which it was changed.
How do I retrieve a new value after editing the cell?