Closed mdaronco closed 5 years ago
I've added an implementation of componentDidUpdate so that the timer is cleared and reset with a new timeout value if the prop changes. I came across this use case in my own application.
componentDidUpdate
I've added an implementation of
componentDidUpdate
so that the timer is cleared and reset with a new timeout value if the prop changes. I came across this use case in my own application.