My json-store contains one record. This record is dirty after changing a field and correctly after store.sync() a POST is sended with action=update and the record data in the body.
On the server side I commit the update and send back the record (with success:true) as it was posted originally (all fields are included).
Afterwards the store has doubled the record, which means the store has now two (2) identical records (same id etc.).
I played around with all options I could imagine of (root [on/off], idProperty (set/unset) etc.) the effect is always the same.
Any hint what I am doing wrong?
I finally found the reason for the described misbehavior. Within my model I had overwritten the constructor like this:
I do not really remember why I did this, but since I have deleted the constructor, everything works fine. But due to my relative inexperience, I don’t know why this works.