Fetch the donation-train list for a campaign against the Play Live donation-train service. Defaults to a 15-second refetchInterval to match the overlay's live polling cadence.
refetchInterval
Auto-disables when campaignID is nullish or empty.
campaignID
UseDonationTrainsParams.
Optional
Standard UseFetchResult over DonationTrain[].
DonationTrain[]
const { data } = useDonationTrains({ campaignID, allowEnded: false, filterInvalid: true }); Copy
const { data } = useDonationTrains({ campaignID, allowEnded: false, filterInvalid: true });
Fetch the donation-train list for a campaign against the Play Live donation-train service. Defaults to a 15-second
refetchIntervalto match the overlay's live polling cadence.Auto-disables when
campaignIDis nullish or empty.