Bug Fixes
hasPendingChangesdefaulted totrueon mount — Plain forms (withoutundo/diffMap) reported pending changes before any edit. It now reflects React Hook Form's dirty state, startingfalseand only becomingtrueafter a real change. (#10)hasPendingChangesstucktrueafter a save — The debounce timer ref was not cleared when the timer fired; it now is.hasPendingChangesstucktrueon multi-field plain forms — The post-save snapshot now falls back to the full pre-save form state instead of the saved payload alone.- Autosave loop with nested fields — Partial nested payloads were shallow-merged onto the baseline, re-dirtying the section every save. Baseline and snapshot now deep-merge the saved payload (arrays replaced).
Full changelog: https://github.com/ziadeh/react-hook-form-autosave/blob/main/CHANGELOG.md