mercredi 30 mars 2016

Ember-data peekRecord returns null

Ember inspector shows the correct user, but

user: Ember.computed(function(){
    let uid = this.get('user_id'); //the correct ID
    return this.store.peekRecord('user', uid);
}),

Returns null. Might this have something to do with attempting this call outside of the model hook? Really stuck on this!

Thanks so much!




Aucun commentaire:

Enregistrer un commentaire