Interview practice question
Infinite list loses items or duplicates after updates
Frontend Engineering · State Management and Data Fetching · Intermediate
In an infinite-scrolling feed, new posts cause items to be duplicated or skipped when loading more. How do you fix this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Offset pagination shifts with inserts.
- Use cursor-based pagination.
- Deduplicate by ID client-side.
- Show "new posts" banner instead of auto-insert.
- Refetch pages consistently.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.