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 還沒有評估資料。