I would like to know how to push record to the Ember Data Store without using the adapter.
For now every time I'm using this.store.push({type: type, data: data}) the store sets the flag hasDirtyAttributes to true.
As workaround I'm using this.store.findRecord(type, id); to get the record updated from the server but I don't need that because the data I have already came from the server.
Aucun commentaire:
Enregistrer un commentaire