@playlive/fundraiser-data
    Preparing search index...

    Function createTiltifyLeaderboardFetcher

    • Build a cursor-aware Tiltify donor-leaderboard fetcher.

      Returned closure plugs directly into TanStack's useInfiniteQuery (pageParam → next cursor). Delegates to tiltify.GetLeaderboardWithCursor which walks Tiltify's opaque after= cursor — same shape as createTiltifyDonationsFetcher.

      Parameters

      • params: {
            campaignId: string;
            isTeam?: boolean;
            limit?: number;
            timeType?: TiltifyLeaderboardTimeType;
        }

      Returns (
          fetchParams: { pageParam: string | null | undefined },
      ) => Promise<
          PaginatedResponse<TiltifyLeaderboardEntry, TiltifyPaginationMetadata>,
      >

      Async closure that takes { pageParam } and resolves to one page of TiltifyLeaderboardEntry rows plus the pagination cursor.