OptionalnumberOfHistoryFrames: numberOptional number of history frames to read from data buffer when this hook initializes.
Optionalpredicate: (frame: Frame) => booleanAn 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.