Adding item to filtered result from ember-data

前端 未结 4 669
南方客
南方客 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:01

    As of ember.data 1.13 store.filter was marked for removal, see the following ember blog post.

    The feature was made available as a mixin. The GitHub page contains the following note

    We recommend that you refactor away from using this addon. Below is a short guide for the three filter use scenarios and how to best refactor each.

    Why? Simply put, it's far more performant (and not a memory leak) for you to manage filtering yourself via a specialized computed property tailored specifically for your needs

提交回复
热议问题