Libraries
    Preparing search index...

    Options for the dedupe middleware.

    interface DedupeOptions {
        key?: (url: string, init: RequestInit) => string;
        skip?: (url: string, init: RequestInit) => boolean;
    }
    Index

    Properties

    Properties

    key?: (url: string, init: RequestInit) => string

    Computes the deduplication key for a request.

    Requests with the same key that are in-flight simultaneously will share a single underlying fetch.

    Defaults to method + '@' + url.

    skip?: (url: string, init: RequestInit) => boolean

    Predicate that decides whether a request should be skipped (i.e. not deduplicated).

    Defaults to skipping non-GET requests.