I have two models that are many to many. They're used on the first page of my app and I'm having trouble loading them.
Both models only have a handful of items (<200) and I'd like to just load both models completely in one findAll
request each. But as the first model gets loaded, Ember starts fetching the missing data for the second model, item by item. If I try to just load the models separately, I get an error and have to set {async:true}
for the hasMany
attr. For some reason though, Ember isn't recognizing the json of the requests for the second model.
Is there anyway to fetch both models and wait till the both load before continuing?
Thanks.