@playlive/react-pipeline
    Preparing search index...

    Function usePipelineLeaderboardExclusions

    • Fetch the current leaderboard exclusion list for a single campaign, or a stable-empty frozen array when the server has not published one yet. Populated by the updateLeaderboardExclusions realtime push whenever an operator adds or removes a donor filter row via the leaderboard-exclusions REST API.

      Parameters

      • campaignID: string | null | undefined

      Returns LeaderboardExclusion[]

      const exclusions = usePipelineLeaderboardExclusions(campaignID);
      const filtered = entries.filter(
      (e) => !exclusions.some((x) => x.donorName === e.name),
      );