Factory that creates the live view. Called once per deps change.
React dependency array — when any dep changes, the view is rebuilt.
Optionaloptions: UseSnapshotOptionsSnapshot throttle options (default 100 ms).
[view, snapshot] — the stable view and its throttled TimeSeries.
Build a derived live view once, subscribe, and return both the view and a throttled snapshot — combining
useMemo+useSnapshotin one call.Typical dashboard code creates 5–10 derived views (filters, aggregations, rolling windows). Without this hook each one needs a manual
useMemofor stability plus a separateuseSnapshotfor subscription.useLiveQuerybundles that into a single call whose return shape matchesuseLiveSeries: