request deduplication
Making identical requests that happen at the same time share one network call instead of each sending their own.
In more detail
Two cards showing the same user should cause one fetch. A promise cache keyed by user ID gives this for free, because the second reader finds the pending promise.
Related terms
- cache — A store of earlier answers kept close to where they are needed so they can be reused instead of fetched or computed again.
- cache key — The name a cache entry is saved and looked up under, usually built from the operating system and a hash of the lock file.
Taught in
- Client-Side Data Fetching Architectures with Suspense — React 19 & Modern Component Architecture