I want to build custom logic and call functions for different actions performed through undo-redo.
For that, I want the values of the current and previous state of the action performed when undo or redo is pressed
Thanks for the quick response,
Yes i mean last transactions, you got that part right.
The undo and redo is working perfectly fine, I want to get the values which are being undo and redo when undo or redo key is pressed so that i can save those values or perform related operations on backend.
I was trying to implement your solution but have an issue here.
For example, if I change the percent done of a task from the Gantt chart it logs around 30 - 40 transactions for this one event.
What I want is that there should be only one value in the queue so that I can send a request to the backend to change the value in the database.
As you can see in the screenshot attached below
Screenshot 2024-01-18 at 7.19.15 PM.png (254.08 KiB) Viewed 486 times
So, in the case that you described, as the task is predecessor of others and it's also linked to Launch SaaS Product as a related task, changing the percent done of that task will trigger other updates of linked tasks, and that's the expected behavior (as if you have more percent done of the Configure firewall task, it'll be closer to complete the main task that's Launch SaaS Product).
But as you can see, they're all nested inside 1 and they are all related to that first update. I believe that's how is supposed to work with linked tasks.
Yes, I understand that changing the percent done of one task will trigger change on other linked tasks as well. The thing here is that when I change the percent done on a task it adds 30 items in the queue that are just related to the task on which I am changing the percent done and not the linked tasks.
So for example if I have only one task in the whole project. and I changed its percent Done from 10% to 20% it will add 34 items in the queue each with a different percent Done value... All I want is to that only one item in the queue with the percent done value of 20 so that I can send a request to the backend with that value.
Is there any way I can know that the percentage was changed from 10 to 20 from that list of items?
Screenshot 2024-01-19 at 1.06.32 PM.png (222.84 KiB) Viewed 412 times