kinetex - v1.0.0-rc.1
    Preparing search index...

    Function createDedupeInterceptor

    • Create a deduplication interceptor that coalesces concurrent GET/HEAD requests to the same URL into a single fetch.

      Returns {
          requestInterceptor: RequestInterceptorFn;
          responseInterceptor: ResponseInterceptorFn;
          errorInterceptor: ErrorInterceptorFn;
      }

      • requestInterceptor: RequestInterceptorFn

        Coalesces duplicate in-flight GET/HEAD requests into one

      • responseInterceptor: ResponseInterceptorFn

        Resolves queued waiters with the shared response

      • errorInterceptor: ErrorInterceptorFn

        Rejects queued waiters when the shared request fails