Synchronization of database and data_editor

I’m using data_editor to display and edit data from a database. Changes I make in the data_editor are saved to the database when I click a button. However, other parts of the system can also make changes to the database, and I want these changes to be reflected dynamically in the data_editor. How can I implement this dynamic synchronization so that my uncommitted changes made in the data_editor on the web side don’t get lost when the data is updated?