Martin Malinda
Apr 19, 2023

> 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

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Martin Malinda
Martin Malinda

Written by Martin Malinda

Creative through code. Inspired by nature. Currently building https://powersave.pro

No responses yet

Write a response