Skip to content

v3.3.2

Latest

Choose a tag to compare

@ziadeh ziadeh released this 15 Jun 08:31
· 1 commit to main since this release

Bug Fixes

  • hasPendingChanges defaulted to true on mount — Plain forms (without undo/diffMap) reported pending changes before any edit. It now reflects React Hook Form's dirty state, starting false and only becoming true after a real change. (#10)
  • hasPendingChanges stuck true after a save — The debounce timer ref was not cleared when the timer fired; it now is.
  • hasPendingChanges stuck true on 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