jeudi 6 octobre 2016

Ember Data queryRecord repeats unccesary calls after include parameters

I am querying data from the store with a code akin to this one:

options = {
   "include": "from, to"
};


this.get('store').queryRecord('path', options).then( function(paths) {
    ...
  };
});

When taking a look at the network calls, the GET path successfully resolves including the from, to objects in the included object of the response.

Right after the network call is performed, two additional GET calls fetching the from and to objects are also fired, leaving the included objects completely useless.

I have tried removing the included options and application works as expected, leaving the option apparently pointless.

I am using Ember Data version 2.3.0.




Aucun commentaire:

Enregistrer un commentaire