react-hook-form 裏面如何改變單個字段的校驗時機
比如email字段不需要在onChange的時候校驗
就不要用useController鉤子給的onChange去改值
相反,要用useFormContext給的setValue去改,然後setValue有個option是不觸發校驗
一句話版。想要不受全局校驗模式影響,就手動接管字段的更新(sweatgrinning)
https://github.com/react-hook-form/react-hook-form/issues/9064