I use Ember and Ember Data - versions 1.13.x
The models dispatch events as expected, for example "didUpdate" happens when a model gets updated on the server. My problem is with the "side-loaded" models. I expect "didUpdate" to be fired when a model gets updated by being represented in the "included" section of the JSON response. The API is compliant with the JSON API standard and in fact the included models are properly updated in addition to the main one. It is only the missing events for them. Is this a bug or is this the expected behavior?
If this is the "expected behavior" then I would appreciate any feedback on how I could introduce similar "didUpdate" events for models in the "included" part of the JSON response.
Thanks
Aucun commentaire:
Enregistrer un commentaire