> But then you're still setting 'shouldRender' to true just below 'renderTimer' so the timer becomes redundant?
Good catch!
I've extracted this code out of my implementation which has a bit more stuff and more configuration options. Here I tried to simplify it more but clearly I didn't do the "cleanup" well.
I'm gonna fix it, thank you