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

    Function useCurrentEvents

    • Fetch the St. Jude cause's fundraising events, optionally narrowed to the current season.

      Tiltify-only — there is no Twitch analogue, so this hook takes no charityType. The upstream list is small, static-ish reference data (one row per event per year); a 5-minute-or-slower refetchInterval is the sane cadence, so override the workspace 5-second default via options.refetchInterval on any long-lived surface.

      Parameters

      Returns UseFetchResult<TiltifyFundraisingEvent[]>

      Standard UseFetchResult; [] on error (the underlying fetcher swallows failures).

      const { data: events } = useCurrentEvents(
      { currentOnly: true },
      { refetchInterval: 5 * 60_000 },
      );