Strange behavior when I add a task to a column in Taskboard, here it is the test case:
-
After I clicked the addTask button and change the text of the card using the inline feature and accept the change pressing the [CMD+Enter] key, it trigger the sync request with the following payload on it:
-
And then after I add the new task in the Database and generate the new ID of the task, I return the same payload but with the difference that I include the "ID" of the task in the same sync request like so:
-
When the request arrives, the event "onSync" of the ProjectModel triggers and I execute the following code:
onSync: function({ source }) { source.acceptChanges(); }
-
Everything it's ok at this point, but if I decide to update the name of the same card I added and accept the change pressing [CMD+Enter] key it triggers the sync request but not the UPDATE operation, instead it triggers but the ADDED operation again like so:
It's an issue or I'm wrong in something?
Regards