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