react-virtualized icon indicating copy to clipboard operation
react-virtualized copied to clipboard

InfiniteLoader, maintain state on history back

Open doorman02 opened this issue 2 years ago • 3 comments

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!

doorman02 avatar Jun 05 '22 23:06 doorman02

Any progress on this?

johnvonneumann7 avatar Jul 03 '22 05:07 johnvonneumann7

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

doorman02 avatar Jul 03 '22 13:07 doorman02

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

johnvonneumann7 avatar Jul 04 '22 11:07 johnvonneumann7