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

    Function useCampaignFundraisingEventAmounts

    • Reference-stable CampaignFundraisingEventAmounts projection over extractCampaignFundraisingEventAmounts from @playlive/fundraiser-data/projections. Reads the campaign's own amounts plus the umbrella fundraising event's pooled total / goal.

      The returned object identity only changes when campaign, fundraisingEvent, or forceCampaignGoal do — lets consumers put the result straight into a useEffect dep list without stampeding.

      Parameters

      • campaign:
            | TiltifyCampaign
            | TiltifyPersonalCampaign
            | TiltifyTeamCampaign
            | null
            | undefined
      • fundraisingEvent: TiltifyFundraisingEvent | null | undefined
      • options: ExtractCampaignFundraisingEventAmountsOptions = {}

      Returns CampaignFundraisingEventAmounts

      const { data: campaign } = useCampaign({ charityType: "tiltify", slug });
      const { data: event } = useFundraisingEvent({ id: eventID });
      const { overallRaisedAmount, overallGoalAmount } =
      useCampaignFundraisingEventAmounts(campaign.data, event.data);