ComputeDiff

See source code

Computes the diff between the previous and current value.

If the diff cannot be computed for whatever reason, it should return .

type ComputeDiff<Value, Diff> = (
  previousValue: Value,
  currentValue: Value,
  lastComputedEpoch: number,
  currentEpoch: number
) => Diff | RESET_VALUE
Prev
VecLike
Next
ChangeSource

We use cookies on this website.
Learn more in our Cookie Policy.