TanStackT
TanStack2y ago
6 replies
foolish-indigo

Debounced Autosave

Hi everyone,

I have an app where I’m trying to implement an autosave. Each time a user enters input into one of many input fields, I want to update the data across the application. However, I want to debounce the actual mutation and proceeding cache invalidation so it only happens five seconds after the data has stopped changing. What is the best way to go about this?
Was this page helpful?