Hello!
I'm working with SVAR Gantt and using the "update-task" event to track task changes. However, I'm noticing that this event triggers a large number of logs when I edit a task, which makes it difficult to efficiently save updates to the database.
useEffect(() => {
if (apiRef.current) {
apiRef.current.on("update-task", (e: any) => {
console.log("start date", e.task.start);
console.log("start date", e.task.end);
});
}
}, [apiRef.current]);
Every small change to a task generates multiple logs. How can I handle this event in a way that prevents excessive logs and ensures that only the necessary updates are saved to the database?
Any suggestions or best practices would be greatly appreciated!