Closed
Description
Not sure if the response to DS.create
belongs in completedQueries or not, but would be useful if it was as it would avoid an unnecessary XHR:
DS.create('document', { author: 'John Anderson' })
.then(function (document) {
DS.get('document', document.id) // pulls from cache properly
DS.find('document', document.id) // triggers another XHR for the same document already in the cache
});
Thanks for all the great work on this library!