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

    Function usePipelinePollDeltas

    • Fetch the latest server-computed deltas for a single poll id, or [] if the poll has only ever been seen via tick (no realtime updatePoll push yet).

      Memo-stable: returns the same [] reference across renders when the poll has no recorded deltas. Pair with usePipelinePolls(id) to drive "+$X just landed on option Y" animations.

      Parameters

      • pollID: string

      Returns PollOptionDelta[]

      const deltas = usePipelinePollDeltas(poll.id);
      deltas.forEach(({ optionID, amountRaisedDelta }) => animate(optionID, amountRaisedDelta));