Logos DX
    Preparing search index...

    Function dedupePlugin

    • Factory function that creates a dedupe plugin for FetchEngine.

      The plugin maintains a local Map<string, Promise> for in-flight tracking and installs an execute (pipe) hook at priority -30.

      Type Parameters

      • H = unknown
      • P = unknown
      • S = unknown

      Parameters

      Returns FetchPlugin<H, P, S> & { inflightCount(): number }

      FetchPlugin that can be installed via engine.use() or plugins config

      const api = new FetchEngine({
      baseUrl: 'https://api.example.com',
      plugins: [dedupePlugin(true)]
      });