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
{{ message }}
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.
When I add a model to a firebase collection, the initial cid value of the model is changed. Is this intended?
This happens when the model object is passed through SyncCollection._parseModels.
_parseModels will return an object that is stripped of everything other than its attributes.
As a result, when the new model is saved and added into the collection, a new cid will be assigned to it.
This behaviour was problematic to me as I assumed that based on backbone.js convention, the cid value will not change upon creation.
The text was updated successfully, but these errors were encountered:
When I add a model to a firebase collection, the initial cid value of the model is changed. Is this intended?
This happens when the model object is passed through SyncCollection._parseModels.
_parseModels will return an object that is stripped of everything other than its attributes.
As a result, when the new model is saved and added into the collection, a new cid will be assigned to it.
This behaviour was problematic to me as I assumed that based on backbone.js convention, the cid value will not change upon creation.
The text was updated successfully, but these errors were encountered: