I am using Ag Grid in my React.js project.
I want to increase the count
value if the cell value changes. I am passing my handleChange
function to onCellValueChanged
callBack. Every time cell value changes it triggers my handleChange
function, but the issue is count
value is always 0 regardless updating it through setState(count + 1)
. Can anyone help with this?
I have posted an example on StackBlitz to reproduce this issue :
https://stackblitz.com/edit/ag-grid-react-hello-world-zmsvf5?embed=1&file=index.js