Export edited row from an editable datatable

I have an editable DataTable. Every time a cells value is changed by the user, the row should be exported to a file. The problem is that when enter is pressed after editing, the focus moves to the next row. Therefore I can’t use the active_cell property. Is there any other way to find the row_id for the edited row?

A Store and callback_context solved it.