You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Missing attributes from server are not removed in model:
constmodel=newModel();model.save({name: 'Paul',age: 18});// server replies {name: 'Paul'}// model still has is age attributes equal to 18// server replies {name: 'Paul', age: 20}// model is correctly updated
The text was updated successfully, but these errors were encountered:
I think this is currently the expected behavior. If you do not pass { wait: true } in the options, your model will be set immediately before sync succeeds/returns.
Hi,
I'm speaking about the model values in the success callback. Then, the
values has already been taken from the server response. If an attribute has
cease to exist, it should be deleted.
If an attribute is modified by the server, it's correctly handled.
Backbone handles both cases very well 😋.
Missing attributes from server are not removed in model:
The text was updated successfully, but these errors were encountered: