Adding item to filtered result from ember-data

前端 未结 4 636
南方客
南方客 2021-01-02 11:17

I have a DS.Store which uses the DS.RESTAdapter and a ChatMessage object defined as such:

App.ChatMessage = DS.Model.e         


        
4条回答
  •  说谎
    说谎 (楼主)
    2021-01-02 12:10

    My reading of the source (DS.Store.find) shows that what you'd actually be receiving in this instance is an AdapterPopulatedModelArray. A FilteredModelArray would auto-update as you create records. There are passing tests for this behaviour.

提交回复
热议问题