use-elapsed-time
Advanced tools
Changelog
3.0.4 (January 11th, 2022)
Big fix:
newStartAt
from the onComplete handler was not respectedChangelog
3.0.3 (January 6th, 2022)
Big fix:
Changelog
3.0.2 (September 5th, 2021)
Big fix:
reset
is a numberChangelog
3.0.1 (June 20th, 2021)
Big fix:
updateInterval
prop didn't really respect that elapsed time. Now, for example, if it is set to 10 seconds then the next update will be exactly after 10 seconds.Implemented enhancements:
newStartAt
value can now be passed to the onComplete
callback as well as the reset
method. This feature was available in v2 of the hook and it is implemented again in v.3Changelog
3.0.0 (June 18th, 2021)
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:
Changelog
2.1.8 (May 13th, 2021)
Chore:
Changelog
2.1.6 (December 12th, 2020)
Chore:
Changelog
2.1.5 (June 21st, 2020)
Big fix:
Changelog
2.1.4 (June 3rd, 2020)
Big fix: