Effect CommunityEC
Effect Community3y ago
5 replies
imagio

Debounce in Effect

Is there a built in way to "debounce" an effect? Specifically in this case I want to cache analytics events in local storage then after some period with no new events upload them all in a batch. The "usual" way of doing this would just be lodash _.debounce but I'm curious if there's an effect way of doing debouncing.
Was this page helpful?