adopted-ember-addons / adopted-ember-addons/ember-infinity
Caching unchanged content ExtendedInfinityModel
- 主要语言
- JavaScript
- 星标
- 374
- 派生
- 128
- PR 合并指标
- 30 天内没有已合并 PR
描述
Is there a way ember infinity support fetching data which is changed. Consider I am fetching a 50 projects(I have mentioned query params below) in batch. And I don't need to hit entire set of API everytime.
Once it is fetched for very first time render list and I navigate between routes I will pass the last project's ID so that backend returns only the projects after last project id I have passed to backend.
Initially I have fetched 50 projects when I visit /project route and after some time I come back to this route I only pass project[49].id so that backend will only send next changed projects.
Do let me know if we support this or any alternative way to do this with ExtendedInfinityModel?
```
const query_params = {
project_id: project.id,
perPage: 50,
perPageParam: 'page[limit]',
pageParam: null,
countParam: 'cursor',
};
return this.infinity.model('build', query_params, ExtendedInfinityModel);
```
贡献指南
评估
这个 Issue 还没有评估数据。