How to cache query result in ember data

后端 未结 2 541
太阳男子
太阳男子 2020-12-30 19:39

I want to cache the result of a query in ember-data. (findQuery)

To make it clear: I don\'t want to cache the entire models; just what models a

2条回答
  •  Happy的楠姐
    2020-12-30 19:53

    When you fire a request based on params Ember Data doesn't know how those params necessarily translate into the models (aka it doesn't know that you have all of the records that have some sort of relationship param1). You can cache it yourself, but then you'd still need some sort of way of knowing those records from other records in your store.

提交回复
热议问题