bvaughn / react-virtualized

React components for efficiently rendering large lists and tabular data
http://bvaughn.github.io/react-virtualized/
MIT License
26.1k stars 3.05k forks source link

InfiniteLoader, maintain state on history back #1754

Open doorman02 opened 2 years ago

doorman02 commented 2 years ago

Feature Request

Considering the following use case for the InfiniteLoader

  1. The infiniteloader has been scrolled and contains e.g. 100-1000 items
  2. One item from the list is selected and the browser routes to a detail page.
  3. The user navigates back using the browser back button.
  4. The infiniteloader should show the previous items and scrolled to the same position in the list.

I did some experiements to handle this but without success.

Any suggestions how this could be achieved using the infiniteloader?

Thanks!

johnvonneumann7 commented 2 years ago

Any progress on this?

doorman02 commented 2 years ago

Not the optimal way but I ended up using iframes to maintain the history state.

johnvonneumann7 commented 2 years ago

I see, I also use WindowScroller, so I guess I will have to consider another library.