adopted-ember-addons / adopted-ember-addons/ember-infinity

Keep model when navigating back

未关闭
#384 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
374
派生
128
PR 合并指标
30 天内没有已合并 PR

描述

When navigating back, I observe that all previously appended results are gone, and I end up scrolled back to the top where the first set of results are shown.

Is it possible to keep all the models, and when going "back", I go back to the page including all appended and autoloaded records?

### Current behavior

* Visit infinity page, initially 50 items
* Scroll down
* Load a bunch of new pages; say 250
* Click item 250 - this changes route
* Go back to the previous page
* __Only first 50 items are shown__

### Trying to achieve the following:

* Visit infinity page, initially 50 items
* Scroll down
* Load a bunch of new pages; say 250
* Click item 250 - this changes route
* Go back to the previous page
* __250 items are shown, scrolled down__

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。