jeudi 24 mars 2016

Ember store find() - use ID from server response instead of whatever you pass to find function

Whenever I call this.store.find('campaign', url), if the entry is not found in store it makes a request to API and creates a record in that store with ID being url. I need to be able to make sure that the record that is being pushed to the store uses id from the payload that is returned by API and not url that I pass in to find() function. What's the best way to go about it?




Aucun commentaire:

Enregistrer un commentaire