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

    Function useSnapshot

    • Subscribe to any live source and return a throttled TimeSeries snapshot.

      The snapshot updates at most once per throttle interval (default 100 ms). Returns null when the source is empty or null.

      Accepts LiveSource, LiveAggregation, LiveRollingAggregation, or any object with a compatible shape — no casts needed.

      Accepts null as a source so hooks like useWindow can pass a not-yet-created source without violating the Rules of Hooks.

      Type Parameters

      • S extends SeriesSchema

      Parameters

      Returns TimeSeries<S> | null