Fetch the ruleset list for a campaign. Defaults to a 15-second refetchInterval and a 5-second staleTime — matches the overlay dashboard cadence.
refetchInterval
staleTime
UseCampaignRulesetsParams.
Optional
Standard UseFetchResult over DonationTrainRuleset[].
DonationTrainRuleset[]
const { data } = useCampaignRulesets({ campaignID }); Copy
const { data } = useCampaignRulesets({ campaignID });
Fetch the ruleset list for a campaign. Defaults to a 15-second
refetchIntervaland a 5-secondstaleTime— matches the overlay dashboard cadence.