Skip to main content

Import

Constructor

Config options

Methods

getStats return value

Examples

Deduplicate parallel fetches

When multiple UI components mount at the same time and each requests the current user, only one network call is made.

Custom key generator

Monitoring deduplication

Integration with ApiClient interceptors

Combine RequestDeduplicator with RequestCache for maximum efficiency: the deduplicator collapses concurrent in-flight calls, while the cache serves repeated reads from memory.
Once the underlying promise settles, the next execute call with the same key will invoke fn again. Deduplication only applies while the original call is still in flight.