Closed arschmitz closed 6 years ago
Ok so after much digging i found the root cause of this would be happy to work on a PR but not really sure where to start. So the JSON api i use returns links for hasMany
relationships not the actual array of id
's normally ember-data
looks for the presence of this link to determine if it should load individual records by ID or to load the link. Because the link is not preserved calls to load this relationship attempt to load by ID instead of link unless i first reload the base record so that the link is found
Also this happens regardless of the use of ember-data-has-many-query
this happens for any attempt to load a relationship on a previously stored record created by this addon
@arschmitz if I understand this correctly the issue is that the link
is not saved to the shoebox?
@MartinMalinda yup i just added a PR fixing this
I am using this addon in conjunction with the
ember-data-has-many-query
add on to queryhasMany
relationships. When i load the primary model in fastboot but then callquery
on the the has many from the client no request is ever made. If i remove this addon it works as expected. I checked and made sure thatember-data-has-many-query
is callingreload
so a request should be made.