Is active

Name

isActive

Type

() => boolean

Description

Return current interval timer status - after calling start it will be true and after calling stop 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).

Last updated