lundi 30 janvier 2017

Emberjs 2.11.0 strange RSVP behaviour

I've looked at release notes but can't find anything that mentions changes to how RSVPs work, but is there a reason this isn't working?

On the route, a very simple model:

  model() {
    return RSVP.hash({
      posts: get(this, 'store').findAll('post')
    });
  }

and in the template:


  


Returns nothing, however if I use a standard model call such as

  model() {
    return get(this, 'store').findAll('post');
  }

with


  


It works as expected. I've done many many apps on previous 2.9.0 and never had a problem with this...

Little confused!




Aucun commentaire:

Enregistrer un commentaire