I have a model consultation joined to record:
export default DS.Model.extend({
title: DS.attr('string'),
records: DS.hasMany('record', { async: true }),
});
Sometime I reload model data using socket, for example for consultation
self.store.all('consultation').forEach(function(c) {
if (c.get('id') == socketData.consultationId) {
c.reload(); // package comes with record
}
});
and record:
self.store.all('record').forEach(function(r) {
if (r.get('id') == socketData.recordId) {
r.reload();
}
});
Data in ember model changing successfully (from ember debugger) but changes is not rendering for records (this is works only for consultation fields, not joined fields).
I tried to update consultation (with records in package), single records but it does not help.
Why this happen and in which way I can debug this?
Aucun commentaire:
Enregistrer un commentaire