Handling Data Changes in the React Scheduler
When performing add, edit and delete actions, the Scheduler will call the onDataChangeStart and onDataChangeComplete callback function.
onDataChangeStart event triggered at the start of any scheduler event data modification (add, edit, or delete) and onDataChangeComplete triggered after modification finishes or data has been loaded, enabling you to update state/UI, persist changes, hide loaders, and handle success or errors.
onDataChangeStart and onDataChangeComplete provides the following collections of items:
addedRecords: An array of newly created event records during add operations.changedRecords: An array of modified event records during update operations.deletedRecords: An array of deleted event records during delete operations.cancel: Set to true to cancel the entire data modification operation and revert all changes.