React hook to measure elapsed time using requestAnimationFrame
Big fix:
Improvements:
Fix an issue where reset
method did not check if the newStartAt
value is a number
The hooks is now written in TypeScript.
Breaking Changes:
autoResetKey
props has been deprecatedreset
method of the hook return value no longer accepts newStartAt
. When it is fired the animation will start over from the initially provided startAt
valueonComplete
return value does not accept newStartAt
New features:
updateInterval
prop now controls how often the hook should rerender. Set as a number in secondsonUpdate
callback will be fired with the current elapsed time when the elapsedTime
changes.Chore:
chore: update dependencies
In this release the Renovate app is added to the repo and all dependency versions are dumped. No new features are introduced.