Quantcast
Viewing all articles
Browse latest Browse all 4830

store.findAll keeps updating when model is added into store

@ondrejsevcik wrote:

Hi, I would like to load all data from the server, but then stop auto updating UI when user starts to edit some models. Currently with store.findAll it automatically pickups all newly created records. What’s the proper way to force that collections stop changing on updates?

Documentation states this

When creating a new record using any of the above methods Ember Data will update DS.RecordArrays such as those returned by store#peekAll() or store#findAll(). This means any data bindings or computed properties that depend on the RecordArray will automatically be synced to include the new or updated record values.

but there is no mention how to disable/workaround around this behaviour.

Thanks for help.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles