Is active
Last updated
Was this helpful?
Last updated
Was this helpful?
isActive
() => boolean
Return current interval timer status - after calling it will be true
and after calling it will be false
.
Currently obtaining hook status is achieved using isActive()
method because it does not trigger unnecessary component re-renders when hook status changes. In the future it will be possible to opt-in for stateful version (variable holding current hook status instead of a method).