zach.codes

Share this post

User's avatar
zach.codes
Throttling Frequent Data in React
Copy link
Facebook
Email
Notes
More

Throttling Frequent Data in React

In this post we will make a custom hook that will update state on a set interval, even if it is passed new data 60 times per second

Zach Silveira
Apr 07, 2021
∙ Paid

Share this post

User's avatar
zach.codes
Throttling Frequent Data in React
Copy link
Facebook
Email
Notes
More
Share
Throttling Frequent Data in React

I have a somewhat unique problem. I have a function being called 60 times per second, and it never stops being called. Most examples for throttling or debouncing only invoke the function after a rest period. In the case of an ARKit session, this never ends. The function is called constantly.

In this post we will be making a small hook that will store dat…

Keep reading with a 7-day free trial

Subscribe to zach.codes to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Zach Silveira
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More