I have an application where I am using the store.subscribe() method to listen to any changes on my redux store and cache the contents into localStorage. I have a functional component where I rehydrate the store on load from the localStorage. I next want to push an update to my API endpoint whenever the store takes an update but I want to debounce that so that it only issues an API call ever minute or two. What can be the easiest way to accomplish this?