Attempted to handle event `loadingData` on while in state root.loading


#1

I use an hasMany async relationship like post hasMany('comment', {async: true}) . As soon as i call comments in my template or controller , wether I use the promise or not , this error is thrown Uncaught Error: Attempted to handle eventloadingDataon <(subclass of DS.Model):ember1186:814> while in state root.loading. . has anyone seen it before in this case ? I’m Using Ember-data-1.0.0-beta.6

Cheers


#2

I was trying to set a key comments containing an array of ids , but using the convention defined by http://jsonapi.org/ was the solution, with a key links: {comments: "/post/1/comments"} were this url return the related records. This is poorly documented sadly, hope this helps.