@pond-ts/react API Reference
    Preparing search index...

    Function useLiveSeries

    • Create and own a LiveSeries for the component's lifetime.

      Returns [live, snapshot]:

      • live — a stable LiveSeries ref. Push events into it from effects or callbacks (e.g. WebSocket onmessage).
      • snapshot — a throttled TimeSeries that updates when new events arrive. null when the series is empty.

      The LiveSeries is created once on mount. Changing options after mount has no effect — pass stable options (literal or top-level constant).

      Type Parameters

      • S extends SeriesSchema

      Parameters

      Returns [LiveSeries<S>, TimeSeries<S> | null]