I need to change the rowStyle of few rows based on the "state"
const [highlightRowData, setHighlightRowData] = useState(0);
lets say this gets changed dynamically by some user action outside the grid.
this is my implementation of rowStyle:
const rowStyle = (params) => {
if (params.data.someData === highlightRowData) {
return { background: "red" };
}
return { background: "yellow" };
};
but this state change doesn't get reflected in rowStyle.