Jhey Tompkins
1 min readNov 30, 2018

--

Potentially a bug ๐Ÿ›

However, the way you are using the throttle could be a little troublesome. It actually blocks the thread with such a large for loop.

One way to test the throttle might be to use setInterval and invoke a throttle inside it. That way you can check itโ€™s working as intended.

For example, if the throttle is set to 3000 and I have setInterval(this.throttleCall, 100) I will only see a log every 3000ms ๐Ÿ‘

--

--

Jhey Tompkins
Jhey Tompkins

Written by Jhey Tompkins

I make awesome things for awesome people!

No responses yet