Debounce action from mutation
I have a use case where I'm using Convex to sync information from a text editor on the frontend (Tiptap). I'm using mutations to update the database with the current state of the text editor (using single flight) and I'm calling
scheduler.runAfter(0, "actions/some-api-call") at the end of those mutations. This works, but since there is a ($) cost to each run of the
some-api-call action, I'd like to debounce it, but haven't found a way to do this without putting the debounce on the client-side. Any thoughts?