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

    Function usePipelineSchedule

    • Fetch the latest server-pushed full schedule for a single campaign, or a stable-empty frozen array when the server has not published one yet (fresh connection pre-identify, or campaign genuinely has no schedule).

      Populated by the updateSchedule realtime push introduced in Phase 35. The Phase 34 usePipelineLastScheduleTransition slice continues to track boundary crossings (current + next only) and is unaffected — read this hook when a full array is needed, that hook when only "which block is airing right now" is needed.

      Parameters

      • campaignID: string | null | undefined

      Returns ScheduleTransitionBlock[]

      const schedule = usePipelineSchedule(campaignID);
      const current = schedule.find((b) => b.isCurrent);