← packages

use-autosave

WEEKLY RELEASE

Debounced autosave for React forms — status machine, tab-close flush, in-flight de-duping.

v0.1.0↓ 3,941/wk★ 316MIT#react

README

README.md
# use-autosave Debounced autosave for React forms — status machine, tab-close flush, in-flight de-duping. ## Install ```bash npm i use-autosave ``` ## Usage ```ts import { createUseAutosave } from "use-autosave"; const instance = createUseAutosave({ timeout: 15 * 60 * 1000, onIdle: () => console.warn("session expiring"), }); ``` ## Why Most projects reimplement this badly, once per codebase. This does it in one place, with tests, and stays out of your way. - Zero dependencies - Fully typed - MIT licensed