Preparing your design workspace

Loading the problem and your saved attempt…

Design Infinite Scroll for Mutable Data

Design a client-side infinite-scroll data layer that fetches incrementally, stores loaded data, and remains coherent when the backend dataset changes.

Design the client-side software for an infinite-scrolling list backed by a paginated API. Decide when to fetch more data, how loaded items are stored and exposed to the UI, and how loading and retry states are represented.

The backend data can change while the user is scrolling, including rows being inserted into ranges the client has already fetched. Compare page-number and cursor pagination and show how your design avoids duplicate or missing presentation where possible.