OptionalnumberOfHistoryFrames: number
Optional number of history frames to read from data buffer when this hook initializes.
Optionalpredicate: (frame: Frame) => boolean
An optional predicate to filter out which data to return. Make sure to memoize this function if you are defining it inline to avoid unnecessary re-renders.
The new measurement data.
A hook for new measurement data.