Is it OK to call clearInterval inside a setInterval handler? August 18, 2023 by Tarik It’s safe. The issue is probably to do with stopTimer not being set as you expect.