Skip to content

DS.create isn't added to completedQueries #90

Closed
@chieffancypants

Description

@chieffancypants

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!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions