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

    Function useDonorSpotlightOverview

    • Fetch the donor-spotlight snapshot for a campaign over plain REST (GET {donorSpotlightApiUrl}/spotlight/overview).

      Named …Overview rather than useDonorSpotlight on purpose: useDonorSpotlight in @playlive/react-pipeline/fusion is the WebSocket+REST fusion hook. Reach for that one on overlays that already hold a pipeline connection; reach for this one on dashboards / editors that only want the REST snapshot.

      Auto-disables when campaignId is nullish or empty, resolving to null. Returns null when the service has no snapshot yet.

      Returns UseFetchResult<DonorSpotlightSnapshot | null>

      Standard UseFetchResult.

      const { data: spotlight } = useDonorSpotlightOverview(
      { campaignId, live: true },
      { refetchInterval: 60_000 },
      );