Closed zchauhan closed 6 years ago
I guess issue is with componentDidUpdate method, if seconds is different in previous and new props then it is selecting previous props not the new one.
componentDidUpdate
if props.seconds != @props.seconds @_seconds = props.seconds @_setupTimer()```
Agreed, that looks suspect. Thanks, I will take a look.
@pughpugh PR for the same - https://github.com/pughpugh/react-countdown-clock/pull/46
Fixed in 2.1.0.
I guess issue is with
componentDidUpdate
method, if seconds is different in previous and new props then it is selecting previous props not the new one.