I am making an app where user has to check data showed in a ag-grid, correct it if needed. When user edits and corrects the data, the cell_changed callback records the new value back in the database.
This part works fine.
The problem is that there are several sets of data that the user pick in dropdown, and then the data is showed in the ag-grid. Every time the user chooses a new data set, the cell_changed callback is triggered. So the data that has just been retrieved from the database is uselessly recorded in the database again.
Is there a way to know if the cell_changed callback is triggered by user input (editing) or by program ?