Pagination and Infinite Scrolling in Apollo Client
Slava Kim
4033

How would you solve the following case:

  • You have a list of items (Page A)
  • You have a detail page for an item (Page B)

You fetched more the list of items (A), click on one which you are interested in (B) to then come back to the list of items (A). How would your solution cope with scrolling to the last position of the page (A) ? Should you load from the last position, reload everything till that point or anything else ?