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

    Function usePipelineDonations

    Implementation signature. When id is supplied, returns the per-campaign donations list; otherwise the full record. The empty fallback (EMPTY_DONATIONS) is frozen + memo-stable to keep the selector identity stable across renders.

    • Fetch the full donations record (campaignID → donations array).

      Returns Record<string, TiltifyDonationWithTestFlag[]>

      The complete Record<string, TiltifyDonationWithTestFlag[]> straight off the store. Re-renders whenever the record reference changes (i.e. any campaign's donations list updates).

    • Fetch a single campaign's donations list (memo-stable [] when the id is unknown to the store).

      Parameters

      • id: string

        Campaign id to narrow on.

      Returns TiltifyDonationWithTestFlag[]