adopted-ember-addons / adopted-ember-addons/ember-infinity
Replace/Search example is not working as expected
- 主要语言
- JavaScript
- 星标
- 374
- 派生
- 128
- PR 合并指标
- 30 天内没有已合并 PR
描述
The example given in the readme does't work as expected. It will get the next page without the applied filter (this is pointed out in the function description). But even if you update the filter on the model it wont load next page depending on how big the first collection size was and on which page you are.
I tried to work around this by resetting these. This works for most cases only not when the first collection is smaller then the new one, then no new pages is loaded.
What i have tried to reset is:
`
model.set('currentPage', 1);
model.set('_totalPages', newCollection.meta.pagination.pages);
model.set('_count', newCollection.meta.pagination.count);
`
贡献指南
评估
这个 Issue 还没有评估数据。