🎉 config shouldUnregister
(#4758)
// global config
useForm({
shouldUnregister: true // default to true
});
// component level
useController({
shouldUnregister: true // default to true
})
<Controller shouldUnregister={true} />
useFieldArray({
shouldUnregister: true // default to true
})
register('name', { shouldUnregister: true })
🐞 fix #4812 issue with unmounted useFieldArray fetch incorrect value
🏎 improve perf by skip logic with pure input without validation (#4838)
🐞 fix #4830 getIsDirty() during the reset action (#4836)
🐞 make it work with TaroJs (#4825)