tiaanduplessis / react-hook-form-persist

Persist and populate react-hook-form form using storage of your choice
MIT License
168 stars 23 forks source link

shouldTouch config option #27

Closed teh23 closed 2 years ago

teh23 commented 2 years ago

Heey, I added shouldTouch option to setValue config, according to https://react-hook-form.com/api/useform/setvalue its a bit update to https://github.com/tiaanduplessis/react-hook-form-persist/pull/10

usage: useFormPersist('form', { watch, setValue }, { storage: (store), exclude: ['card'], dirty: true, validate: true, touch: true });