Skip to content
Networking·Advanced·Conceptual·1 min read

How do pagination and infinite scroll interact with a normalized cache?

Short interview answer

Pages are appended to a cached list keyed by the query plus cursor, and individual items are often also stored by id so an update in one place reflects everywhere. Getting invalidation right — what to refetch after a create or delete — is the harder part.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Client-side data fetching patterns

Related questions