I am using ember-changeset for all my validation needs. The thing is that the changeset needs to be initialised with the current model. So, usually this is done in the route::setupController() method. This all works fine. Unless you are using a web socket and the server pushes updated records, which get pushed to the ember store via pushPayload(). What happens now is that a user that is viewing the record that is updated, does not see the changes, as the user only sees the current changeset (and not the actual model), wich gets updated whenever the setupController() method in the route is called.
Now I am looking for a way to observe changes to a model that gets pushed to the store. I tried to observe the various properties on the model like isReloading or didUpdate from the controller, but I wasn’t able to get it to fire when the model is updated. The only solution I have found so far is to observe all properties I know that would change when an updated model is pushed, which seems quite cumbersome.
Is there a way to observe when an updated model is pushed to the store?