Will Ember Data support full real-time updates?

Will Ember Data support full real-time updates similar to Derby?


I’ve done this successfully by using Socket.io and calling reload() on the affected models. As far as I can tell, it’s safe to call reload() when the following is true:

    (model.get("isLoaded") && !model.get("isSaving") &&
     !model.get("isError") && !model.get("isDeleted") &&
     !model.get("isDirty") && !model.get("isReloading"))

The tricky part is not accidentally reloading a model which isn’t already in the store. For that, I use something ugly and undocumented like:


This all requires some manual work, and it ignores a couple of corner cases, but it seems to work quite well in my experiments. Of course, if the in-memory model is dirty, things get more complicated…

1 Like

Yep, we are actively working on this.


What is the current status of this? Has anyone been using the latest Ember Data with real-time updates?

To find a record locally, you can use:

store.getById(type, id)

hi tomdale, may I ask if there are any updates on this feature? Thks in ad

1 Like