I have the following code in my component:
hotelObserver: Ember.computed(function(){
this.get("store").findRecord("hotel", "hotel1").then((hotel)=>{
this.set("hotel", hotel);
});
})
In reality when 2 components are rendered on the same page, only the first promise is resolved. The second promise's then is never called. So I figured that the problem only surfaces when findRecord is called 2 ore more times with the same parameters. Is this the bug or I am doing something wrong?
Aucun commentaire:
Enregistrer un commentaire